/** * Replace a photo from a File. * * @param file * @param flickrId * @param async * @return photoId or ticketId * @throws FlickrException */ @Override public String replace(File file, String flickrId, boolean async) throws FlickrException { InputStream in = null; try { in = new FileInputStream(file); return replace(in, flickrId, async); } catch (FileNotFoundException e) { throw new FlickrRuntimeException(e); } finally { IOUtilities.close(in); } }