PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Display MySQL blob in imageview
Display MySQL blob in imageview
Débuté par Johan, 21 avr. 2021 13:58 - 1 réponse
Posté le 21 avril 2021 - 13:58
How can I display a image stored in a MySQL mediumblob field in image control.
Unable to find documentation on it.
Please assist.
Posté le 21 avril 2021 - 16:40
Got it to work.
The problem was at the data used to populate the field in the MySQL table from NodeRed.
Code in WinDev:

MyImage is Image
HReadSeek(cameras, id, 1) //(Just used the id = 1 for testing)
IF HFound()
MyImage = dLoadImage(cameras.camblob,imgConvert)
IMG_Camblob = MyImage
END