cancel
Showing results for 
Search instead for 
Did you mean: 

Synchrone read file interface ?

Former Member
0 Kudos

Hi Guys,

I need to build a webservice that returns a .jpg picture as an attachment to the SOAP messgae.

I have build a webservice to java proxy interface. But i*m stuck, because the MessageAttachment is not working on PI 7.11 yet.

Any of you have a good idea of how to implement a webservice that returns a binary file on PI ? it should be done as a syncrhon interface.

I would hate to ask our microsoft gyus to make the webservice for me .-)

Thanks

Jens

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, you can return the image as base64 binary in the message payload. Define a field of type xsd:base64Binary and a field for filename. The receiver can decode the content and save the file, or as in your case attach to a SOAP message.

Martin

Former Member
0 Kudos

Base64 encoding the file and return it in the payload solved the probelem.

Thanks

Jens

Answers (1)

Answers (1)

former_member184681
Active Contributor
0 Kudos

Sorry, my first thought was not correct... Do as Martin suggested, it should work fine for you.

Edited by: Grzegorz Glowacki on Jan 26, 2012 12:04 PM