LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send jpeg image as mime with web services

Hi there

 

I ran out of solutions. Can, please anyone help me??

 

I'm trying to send an ordinary jpeg image using LV 8.6 web services

and 'Write Response VI'. The example database  in LV 8.6 is still very poor.

 

What do I need to do? Do I have to convert jpeg to MIME? ...using 'base 64 vi'

encoder? Any help?

 

Thank you very much in advance.

 

0 Kudos
Message 1 of 7
(4,809 Views)
Did you try data socket communication?
0 Kudos
Message 2 of 7
(4,793 Views)

Are you looking for something along the lines of this?  This would stream the data via a web service:

 

 

Message Edited by Jared_B on 08-19-2008 10:46 AM
Regards,

Jared Boothe
Staff Hardware Engineer
National Instruments
0 Kudos
Message 3 of 7
(4,777 Views)

Hi,

 

I have tested this vi but without sucess. Is there a specific configuration in the web service properties ?

Thanks.

 

Vincent Ulmer (France)

 

0 Kudos
Message 4 of 7
(4,301 Views)
When you say without success, what do you mean? Do you get any errors or warnings? Does it run at all?
0 Kudos
Message 5 of 7
(4,272 Views)

No error and no warning.

When I put the address in the navigator, it returns me the same address as text.

I use the post method to send my request to the vi located on the server.

If you want, I can send you my project (very little project, it's just a test of this function) to see the web service configuration (I use 2009 version).

 

Vincent

0 Kudos
Message 6 of 7
(4,262 Views)

I found the solution (french topic : http://forums.ni.com/ni/board/message?board.id=4170&thread.id=30683) but for me the example of the third message of this topic works only if i read the jpeg datas in a while loop (1000 bytes at each iteration).

 

Vincent

0 Kudos
Message 7 of 7
(4,199 Views)