Hello!
I am saving/loading images locally to save data usage for my users.
Saving images works fine:
However, whenever I try to use the kvs.GetBitmap, I get this error:
The image that it's trying to load is a 497 KB jpeg.
Smaller images seem to work fine as well. I've been using 15-50KB just fine.
Thank you!
I am saving/loading images locally to save data usage for my users.
Saving images works fine:
Saving Images:
Dim j As HttpJob
j.Initialize("", Me)
j.Download(Starter.staticAREdURL & "public/articleImages/" & article.img)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim myBitmap As Bitmap = j.GetBitmap
FillImageToView(myBitmap, pnlCardImage, True)
Starter.kvs.PutBitmap("news_" & article.img, myBitmap)
Else
pnlCardImage.Height = 0
End If
However, whenever I try to use the kvs.GetBitmap, I get this error:
B4X:
android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=1
B4X:
If(Starter.kvs.ContainsKey("news_" & article.img)) Then
Try
Dim tmpBitmap1 As Bitmap = Starter.kvs.GetBitmap("news_" & article.img)
FillImageToView(tmpBitmap1, pnlCardImage, True)
Catch
Log(LastException)
End Try
Else
The image that it's trying to load is a 497 KB jpeg.
Smaller images seem to work fine as well. I've been using 15-50KB just fine.
Thank you!