Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP message with TIFF attachment  RSS feed

 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to attach a tiff file to the soap message but don't know how to implement it. Can someone please let me know how to do it if you have done it before.

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could load the bytes that make up the image into memory, turn it into ASCII by base-64 encoding, and send the whole as a string. Or, send it as a MIME attachment.
 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for a quick response. Can you give me some examples if you have them because I am not quite familiar with attachments.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This example uses the obsolete JAX-RPC API, but it does demonstrate the basics.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web Services, Opaque Data, and the Attachments Problems discusses a variety of solutions to the problem of binary data transfer, their relative strengths and weaknesses which may influence your choice of approach.

Then there is also Fear of Attachments.
 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for all your inputs. I will go over all the provided resources.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!