I am trying to store bitmaps that come from the device's camera app in SQLite
database in the device. I know that storing images as BLOB in a database is not the best approach, however in my case, i cannot avoid it. The problem is that the images can be very large, size since they come from the default camera app of the device and i dont want to decrease noticeably the image quality. Assuming that i cannot avoid to load a bitmap instance of that image in the memmory (or at least the byte array of that image) since i will need it form the insert SQLite
query, how can i be sure that i will not have memmory isues (OutOfMemmoryError
)? Is there a way of doing this without downscaling (or at least without downscaling the image quality in a noticeable proportion)?
P.S. I have read the android developers section about loading bitmaps efficiently.
Any suggesstion would be appreciated.
Thanks!