makis_best Well-Known Member Licensed User Longtime User Oct 1, 2019 #1 Hi. I want to create one album like this example. The difference is that I have pictures in sqlite in one blob field. How I must change the code so I can display the images in update sub. Thank you
Hi. I want to create one album like this example. The difference is that I have pictures in sqlite in one blob field. How I must change the code so I can display the images in update sub. Thank you
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2019 #2 Reading images from SQL: https://www.b4x.com/android/forum/threads/sql-tutorial.6736/#content Upvote 0
makis_best Well-Known Member Licensed User Longtime User Oct 2, 2019 #3 I can read the images from database.... I can't find how I can display the photos on every cell. I mean I need to replace this line B4X: iv.SetBitmap(xui.LoadBitmapResize("", row.Get(column.Id), iv.Width, iv.Height, False)) With.... ?????? Upvote 0
I can read the images from database.... I can't find how I can display the photos on every cell. I mean I need to replace this line B4X: iv.SetBitmap(xui.LoadBitmapResize("", row.Get(column.Id), iv.Width, iv.Height, False)) With.... ??????
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2019 #4 It depends on how you organize the images. In the example the items content is the file name: B4X: row(index) = f 'LoadData sub In your case you need to set the content to something that will later help you retrieve the correct image from the database. Upvote 0
It depends on how you organize the images. In the example the items content is the file name: B4X: row(index) = f 'LoadData sub In your case you need to set the content to something that will later help you retrieve the correct image from the database.