Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Java in General
Binary Attachments
rahul V kumar
Ranch Hand
Posts: 82
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I would like to attach a binary file (PDF) to an xml document. And that XML Document will be transmitted to a
Java
Application.
Any ideas on how to go about it ?
Thanks in advance.
Jeroen Wenting
Ranch Hand
Posts: 5093
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You will need to encode the binary data to a text format (UUEncoding will do this), then wrap all that in a CCDATA section (or that PCDATA).
On the receiving end, get the data and decode it back to its binary format.
42
Jeroen Wenting
Ranch Hand
Posts: 5093
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You might have problems using
String
if the data is large (StringBuilder or StringBuffer would serve better) but basically yes.
42
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Binary XML-- Any Decoder for it --
get xml handle binary file?
Any way to export a JSP page to a word document?
Binary Data in XML
How exactly does MTOM shrink the payload?
More...