LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save image as binary data in database: LabVIEW adds 4 bytes

Hi JCollado,

why do you read it as an image? I recommend to read the image as binary data and write it to the database. You can use the file I/O function to read the image.

With your method it could be that you lose some information, e.g. the mask or color table.

 

Mike

0 Kudos
Message 11 of 14
(1,523 Views)

 

Thanks I will try that.

JCollado
0 Kudos
Message 12 of 14
(1,513 Views)

 

 

I think I don't know what I'm doing with this.

 

It works fine to load in labview but not in crystal reports.

 

Could you show me snippet of doing it reading binary?

 

Else I will just make a vb.net dll  and pass it the image path to save to database. This will be easy enough for me but I would hate to do this just because I can't make it work with Labview.

 

Not much experience with Labview yet.

 

Thanks

JCollado
0 Kudos
Message 13 of 14
(1,503 Views)

Just use the Read Binary File function. Be sure to set the endianness, if necessary.

0 Kudos
Message 14 of 14
(1,499 Views)