BugNot Member Apr 21, 2020 #1 Hello, About this, THREAD, how to get images with local sql data base? Thanks
Erel B4X founder Staff member Licensed User Longtime User Apr 21, 2020 #2 Moved to the questions forum. Upvote 0
M Mahares Expert Licensed User Longtime User Apr 22, 2020 #3 BugNot said: About this, THREAD, how to get images with local sql data base? Click to expand... 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: Code: 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
BugNot said: About this, THREAD, how to get images with local sql data base? Click to expand... 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: Code: 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.