I have a class which write a png in the internal storage. When I write and read it just after that, it works.
FileOutputStream fileOutStream = openFileOutput(filepath, Context.MODE_PRIVATE); mBitmap.compress(Bitmap.CompressFormat.PNG, 90, fileOutStream); fileOutStream.close(); (the type of Bitmap is a Bitmap)
FileInputStream fileInStream = openFileInput(filepath); byte[] fileContent = org.apache.commons.io.IOUtils.toByteArray(fileInStream); When I use the same read function, with the same filepath parameter (I verify id), but in another class, it doesn't work.
Is there a limitation when using with another class of the same project ?
Regards