Android Question SQLite SQLiteBlobTooBigException

makis_best

Well-Known Member
Licensed User
Longtime User
Hi

I try to read a BLOB record from SQLite database but I get the error

B4X: Copy
android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=1

How to solve that problem?
 
How to solve that problem?
Fetch less than 1mb of Data from the DB. What have you stored in the DB and how many data you are fetching?
 
Upvote 0
We talking about 45000 pictures to transfer from MS SQL server (BLOB) to any android device and stored.
Also that problem happening only with 10 to 15 pictures.
 
Upvote 0
Upvote 0
I would write a small B4J App to do the conversion (save blob to disc and generate the data to store in a SQLite DB). But you also have to download the 45000 Images. I would zip them just to download only one file. Maybe splitted.

Android (B4A) is the wrong solution here i guess.
 
Upvote 0
And what if a picture update.. Need to run again?
It depends on how you handle it. I would crate a flag in the db. Set it to 1 if the image is changed.
Set it to 0 if you already handled it once. So the next run only need to handle 50 (for ex) new Images and not all.

All depends on Design.
 
Upvote 0
Back
Top