01-08-2013 05:34 PM - edited 01-08-2013 05:45 PM
I saved the image into SQL database, see attachment (SaveImage2SQLDB.rar), while I have some trouble to retrieve the image. I also attached the vi which I used to convert the string to image. The string already has a value I obtained from the database. Can anyone tell me the reason why it didn't work.
Thanks in advance.
Jane
LabVIEW 2012, VDM 2012
01-09-2013 12:01 PM
Hi Jane,
What exactly isn't happening correctly? The conversion or the retrieval?
This discussion forum may be of some use: http://forums.ni.com/t5/LabVIEW/image-from-compressed-string/m-p/2207894
01-09-2013 03:31 PM
I used unflatten string function to try to get the image, but there is an error code. Can you open and run my attached <convertstring2image.vi>? The input HEX string is the one I retrieved from the SQL database.
01-10-2013 09:23 AM
Hi Jane,
I'm not sure why your error is occurring, but I found an example on how to do what you're attempting to accomplish, please this link: http://forums.ni.com/t5/LabVIEW/imaq-string-to-image/td-p/1100298
Thanks!
01-10-2013 05:02 PM
To save the image to the SQL database <image> type data, I have to change the string format. In the save image vi, you can find this. The example you mentioned actually didn't convert the string.
Thanks,
Jane
01-10-2013 07:18 PM