Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes SOAP message with TIFF attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "SOAP message with TIFF attachment" Watch "SOAP message with TIFF attachment" New topic
Author

SOAP message with TIFF attachment

Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
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
Marshal

Joined: Mar 22, 2005
Posts: 35240
    
    7
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.


Android appsImageJ pluginsJava web charts
Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
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
Marshal

Joined: Mar 22, 2005
Posts: 35240
    
    7
This example uses the obsolete JAX-RPC API, but it does demonstrate the basics.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
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.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
Thank you so much for all your inputs. I will go over all the provided resources.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: SOAP message with TIFF attachment
 
Similar Threads
SOAP message with attachment server-side implementation
How to process SOAP attachment at web service??
tiff images
Scanning of Images And Displaying Existing TIFF Images
Convert SOAP Message to JMS message