Android Question B4A ImageSlider with sql

Mahares

Expert
Licensed User
Longtime User
About this, THREAD, how to get images with local sql data base?
It is not clear from your question, what you are asking, but this is how I used it with a SQLite database.:
The table contains the images files names as text and the images are stored in DirInternal independent of the database. The table has no Blobs. I am not sure you can do it with the images as part of the table because of this code:
B4X:
Sub ImageSlider1_GetImage (Index As Int) As ResumableSub
    Return xui.LoadBitmapResize(File.DirAssets,MyList.Get(Index), _
    ImageSlider1.WindowBase.Width/2, ImageSlider1.WindowBase.Height, True)    
End Sub
Unless someone can point you to use the images embedded in the table with ImageSlider after you you extract the bitmap from the bytes. I was not able to.
 
Upvote 0
Top