Answer the question
In order to leave comments, you need to log in
Android SQLite - Need help with blobs?
I'm trying to save pictures in blobs in android (via byte[]). They seem to be holding up well. Viewing the SQLite Manager database in Mozilla shows that there is data. Then I get these blobs from the database through cursor.getBlob(columnIndex) - I always get null. culumnIndex seems to be correct. There are no problems with other fields in the same query, but they are numbers.
In principle, I know that many people advise storing images not in blobs (in particular, because of the undocumented 1M cursor size limit), but in separate files. But the pictures are small (no more than a couple of kilobytes) and there are a lot of them (for now, a couple of thousand, but there will be more). I can imagine what will be the overhead on the files.
So the question is: why do they get dummy instead of blobs?
Answer the question
In order to leave comments, you need to log in
Maybe this will help
c.getString(c.getColumnIndex(String columnName))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question