|
|
@ -255,9 +255,10 @@ public class ImageSaver { |
|
|
|
try { |
|
|
|
try { |
|
|
|
is = new FileInputStream(source); |
|
|
|
is = new FileInputStream(source); |
|
|
|
os = new FileOutputStream(destination); |
|
|
|
os = new FileOutputStream(destination); |
|
|
|
IOUtils.copy(new FileInputStream(source), new FileOutputStream(destination)); |
|
|
|
IOUtils.copy(is, os); |
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
res = false; |
|
|
|
res = false; |
|
|
|
|
|
|
|
} finally { |
|
|
|
IOUtils.closeQuietly(is); |
|
|
|
IOUtils.closeQuietly(is); |
|
|
|
IOUtils.closeQuietly(os); |
|
|
|
IOUtils.closeQuietly(os); |
|
|
|
} |
|
|
|
} |
|
|
|