Currently, when I want to save a bitmap to disk I use:
bitmap.compress(Bitmap.CompressFormat.JPEG, 90, out);
Is it possible to have the data written to a byte array instead? I need to manipulate the data that goes to disk and not just the bitmap's image data. The jpg consist of additional stuff like metadata. I don't really care that it's a jpg. I'm not interested in what the data is but just to access the entire data that would normally get written to disk.