Memory Efficient Android Jpeg Conversion
My code is as follows: public static byte[] compress(byte[] data, CompressFormat format, int quality) { final ByteArrayOutputStream baos = new ByteArrayOutpu
Solution 1:
You don't have a choice but to load the Bitmap I think. But it's not a problem. If your image is huge, scale it down before loading it into memory.
Have a look at http://developer.android.com/training/displaying-bitmaps/load-bitmap.html
Post a Comment for "Memory Efficient Android Jpeg Conversion"