Hello, I need to write a large JPG in Android, but I can't find an API where i can provide chunks of data to be saved.
For example I want to save a 8000x8000 px jpg from generated data. How can i handle this without running out of memory? My approach was to generate a portion of the image (some full lines for example) and write them to disk, until full image is written. I need a class like BitmapRegionDecoder but doing the oposite: some kind of BitmapRegionEncoder.encodeRegion(..) The need of JPG is because the final image will be uploaded to a server, so high compression is a need; Thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e4a24166-d737-4f14-a7bd-a2ef091ce138%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.