LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send PDF File Via HTTP RESTFul LabVIEW WebService to a client WebService

Solved!
Go to solution

Hello:

 

Is there a way to Send PDF file as binary string to Web Service Client from a LabVIEW Web Service? Is there any sample code I could use?

0 Kudos
Message 1 of 2
(242 Views)
Solution
Accepted by topic author Anthony_L

OK, streaming a .* pdf file from a LabVIEW Web Service (GET) when run in DEBUG mode did NOT work. All attempts kept returning BAD REQUEST Error = 401

 -- However, after compiling and deploying the Web Service to NI Web Server, both POSTMAN and LabVIEW Web Service Client worked OK!

 

-- Attached are illustration in support of the above.

 

Bottom Line:

-----------------

LabVIEW Web Services works well (OK) in streaming a *.pdf file to a web service client.

 

Both:

 

(a) POSTMAN web service tool, and

(b) LabVIEW web Service client

 

. . . successfully received the streamed file via Https GET API request.

 

Anthony Lukindo
Mezintel Inc.

0 Kudos
Message 2 of 2
(180 Views)