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
For the method to work on any device and aplication you just need to replace:
InputStream is = Context.getContentResolver().openInputStream(yourFileURi);
This way you can encode external files as well.