LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import image to labVIEW from MSSQL

Dear all ,

 

     i have some trouble about import the image from the SQL server by using labview

database connectivity toolset . How can i read the image in the Database ? as the image

is encoded by binary.

 

Thank all

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

Hi shingy,

you should store it temporary on your harddisk. You can load it from there with the "normal" Picture functions.

Which format has your image?

 

Mike

0 Kudos
Message 2 of 4
(3,332 Views)

hi mike ,

     

        in fact , i want to import the image to the labview  from the SQL database , but the image datatype is varbinary( Max ) ,

i don;t know how i can show this image and show it in the labview after i use database connectivity toolset to get the information of this image

my image is jpg.

 

is there any demo to do this ?

 

Thanks

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

Hi shingy,

you can read image from the database and store it to a file. You should be able to read the data like all other entries from the database. Store it as *.jpg and load it with "read jpg file.vi".

 

Mike

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