From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert image to SQL database table

Hi , 

i want to know how to insert image in SQL Server database using LabVIEW. 

0 Kudos
Message 1 of 5
(2,546 Views)

First question: do you know how to insert an image into a SQL Server database *not* using LabVIEW?
Second question: Do you have the LabVIEW database connectivity extension?
Third question: Have you looked at the LabVIEW SQL help?

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 2 of 5
(2,533 Views)

 this is the Code .

Capture1.PNG

 

When i  trying to run the vi , I receive this error.

Capture.PNG

0 Kudos
Message 3 of 5
(2,515 Views)

I found this in one old forum, let us know if it helped.

 

https://forums.ni.com/t5/LabVIEW/ADO-Error-0x80040E57-String-or-Binary-Data-truncated-Error/td-p/126...

 

regards

0 Kudos
Message 4 of 5
(2,478 Views)

Read your JPEG file in as unmodified text (rather than converting to a LabVIEW image format as you are doing) and insert that text.

0 Kudos
Message 5 of 5
(2,476 Views)