ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Read image saved in MySQL Database under BLOB Type

Hi ,

i use this code  to read image saved in MySQL with BLOB type and i get this error .

you find below the code and the error .

Best regard .

code.PNGError.PNG

0 Kudos
Message 1 of 4
(3,220 Views)

How is the image converted to a BLOB type when it is written to the database?

aputman
0 Kudos
Message 2 of 4
(3,178 Views)

It looks like (since your "code" is only a *picture*) you have a 2D array of images... which makes no sense at all.

How was the data inserted into the database?

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 3 of 4
(3,172 Views)

A stored .png, .bmp or .jpg won't cast to a picture control. You'll have to get strings, sometimes store them to file, only to load them as pixmap. .Png and .jpg files can be converted from string to pixmap without a temporary file.

0 Kudos
Message 4 of 4
(3,152 Views)