axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: Java Object vs XML (Webservice)
Date Fri, 25 Apr 2003 22:17:14 GMT

----- Original Message -----
From: "Andrew Vardeman" <>
To: <>
Sent: Friday, April 25, 2003 12:33
Subject: Re: Java Object vs XML (Webservice)

> I just used Java's built-in zip stuff (in to dump the text
> of the XML document into a zip output stream and then base64 encode with
> the sun.misc.Base64 encoder (which is probably bad since it doesn't exist
> in non-Sun Java implementations), and I send the encoded version as a
> String.  Check out those classes in the Javadocs if that's the way you
> to go.
> There's nothing magic; the client has to know that it's receiving a base64
> encoded zipped XML document as a string.  I have the luxury of sending
> things in cumbersome formats because I'm writing both the server and the
> client and for me it's worth the extra encoding work to save our users
> download time.

if you own both ends, why not use attachments? No base64 bloat there.

View raw message