Well, I know what you are trying to do, perhaps create images, movies or, for example, with internal storage.
You can use InternalStorage to store bytes of data. If you have bytes you can just do:
String FILENAME = "hello_file"; String string = "hello world!"; FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); fos.write(string.getBytes()); fos.close();
to find out:
File file = ... OutputStream out = null; try { out = new BufferedOutputStream(new FileOutputStream(file)); ... finally { if (out != null) { out.close(); } }
All sources are found on this and this . I can not help you further than this reason. I have never tried.
sdfwer
source share