Most of the examples I have seen online have something similar to:
FileOutputStream out = new FileOutputStream(someFilename);
someBitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
Is any additional work needed to close the stream and ensure that it was flushed to the disk properly?
You should definitely call close() on the stream :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With