I have a FileInputStream created using Context.openFileInput(). I now want to convert the file into a byte array.
Context.openFileInput()
Unfortunately, I can\'t determine the
This is the easiest way
FileInputStream fis = openFileInput(fileName); byte[] buffer = new byte[(int) fis.getChannel().size()]; fis.read(buffer);