/* * (non-Javadoc) * * @see org.magnum.dataup.service.VideoService#saveVideoData(long, * java.io.InputStream) */ @Override public void saveVideoData(long id, InputStream videoData) { Video video = getVideo(id); if (video == null) { throw new VideoNotFoundException(String.format("Video does not exists for id=%s", id)); } try { videoFileManager.saveVideoData(video, videoData); } catch (IOException e) { throw new VideoServiceException(String.format("Error saving video to file for id %s", id), e); } }