This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Does JAX-WS require that attachments be base64 encoded?

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am tasked with writing a web service which uploads and downloads various file types. The files could be very large. I don't want to use base64 encoding for the transport. I can use either JAX-WS or SAAJ. Does JAX-WS require that the data be base64 encoded? Thank you for any help you can give.

Ravi
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not if you are using attachments (JAX-WS: Binary Attachments (MTOM)).

base64 encoding is only used if you intend to include the non-XML content inside the XML payload of the SOAP envelope (binary data without attachments).

The problem with the various attachment technologies is that they aren't equally well supported by all client SOAP stacks - so base64 encoding may be preferable.
 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much. That is a good start.
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!