mercredi 8 juillet 2015

Android - Retrieving image blob form SQLite DB without using bitmaps or decodeStream

Android - I am getting image as JPEG from an URL and storing it in binary form in SQLite DB. Then while retrieving the same blob from DB, I am getting it as bytearray nad converting it as bitmap, using decodeStream; this causes OutOfMemory and so I have used inSampleSize to scale the image.

But my requirement is not to scale the image, so is there any other way to get image from DB without using bitmaps and decodeStream.

Also is there any way in android to retrieve image from DB in its native format(JPEG)?

Aucun commentaire:

Enregistrer un commentaire