lundi 14 septembre 2015

Is it a good idea to store bitmap as BLOB in Sqlite?

If I store too many bitmaps (as BLOB) in my sqlite database, while retrieving them back I get strange exception (which I can't catch even as Throwable, but I can see it in LogCat every time):

Failed to read row 2, column 0 from a CursorWindow which has 2 rows, 8 columns

When I don't store BLOBs, I don't get such exceptions. Maybe I should store images at phone memory and keep at database uris to this images?

What is the problem? Could anyone tell me?

Aucun commentaire:

Enregistrer un commentaire