Hi,
I want to ask a little question.
I have a project that take 8 image using camera intent.
I put the picture in B4XImageView, after that I get the bitmap and save it to SQLite.
Few reason why I must save to SQLite.
- I need to send this bitmap (will be converted to Base64) to web server via HTTP Post. After that the Base64 Image will be converted back as JPG and put in folder.
- User won't able to delete the image because it's won't show in file manager or gallery. It also save the hassle for user to delete the old image because old data will be set to delete from SQLite when the data is over 1 month old.
The problem I have is, when I try to retrieve the file using Result Set (ExecQuery2), it give SQLiteBlobTooBigException on resultSet.NextRow.
I also try cursor and have same exception.
I have read that cursor have max size which is 1 MB.
Is there any work around?
Attached the simplified version of my project.
I want to ask a little question.
I have a project that take 8 image using camera intent.
I put the picture in B4XImageView, after that I get the bitmap and save it to SQLite.
Few reason why I must save to SQLite.
- I need to send this bitmap (will be converted to Base64) to web server via HTTP Post. After that the Base64 Image will be converted back as JPG and put in folder.
- User won't able to delete the image because it's won't show in file manager or gallery. It also save the hassle for user to delete the old image because old data will be set to delete from SQLite when the data is over 1 month old.
The problem I have is, when I try to retrieve the file using Result Set (ExecQuery2), it give SQLiteBlobTooBigException on resultSet.NextRow.
I also try cursor and have same exception.
I have read that cursor have max size which is 1 MB.
Is there any work around?
Attached the simplified version of my project.
Attachments
Last edited: