xml-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Nichol <snicholn...@scottnichol.com>
Subject Re: binary data in SOAP
Date Wed, 04 Dec 2002 01:54:53 GMT
You do not send arbitrary binary data as XML.  XML is "readable", i.e.
it is character based.  The typical encoding used is utf-8, which would
not allow you to send arbitrary binary data.  It is typical to base64
encode binary data, which increases its size 33%.  Welcome to XML, which
you can generally assume will be the worst-case serialization method in
terms of size and speed.  For size and speed, you might just use the
serialization built into Java.

The MIMEPartSerializer is for attachments.  It will typically base64
encode binary data.  The attachments are not part of the XML itself, so
if you really want to carry XML payloads, you cannot use this.

Scott Nichol

----- Original Message -----
From: "Marco Schulze" <Marco@NightLabs.com>
To: <soap-user@xml.apache.org>
Sent: Tuesday, December 03, 2002 8:25 PM
Subject: binary data in SOAP

> Hello,
> how is it possible to serialize binary data (e.g. FileStreams) via
> I saw a MIMEPartSerializer. Does this encode like binary data in an
> eMail is encoded? This would be bad, because it gets much bigger by
> this. Is it possible to serialize somehow with raw binary data? Does
> BeanSerializer automatically does encode streams (e.g. an image in a
> FileInputStream)?
> I hope that I could make understandable what I mean...
> Thanks in advance for answers!
> Best regards, Marco ;-)
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message