Unable to preview images after copying the file to USB storage. #340
shirishareddy
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When i copy the file to detected USB device i am not able preview the image i.e copied to USB device.
Here is the sample code for File copy.
UsbFile file = newDir.createFile(path);
OutputStream os = new UsbFileOutputStream(file);
os.write(FileUtils.readFileToByteArray(source)); //FileUtils.readFileToByteArray is apache commons method
os.close()
Can someone help me out in debugging?
Did anyone faced this kind of issue already?
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions