You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Argo <ar...@hot.ee> on 2006/02/10 15:39:45 UTC

content-transfer-encoding: base64

Hi all,

Is it possible specify to Content-Transfer-Encoding:base64 for ws
attachment with Axis 1.3?

I have a generated client class with method with DataHandler.
DataHandler DataSource is simple ByteArrayDataSource. Bytes are encoded
as base64. 


-- Argo

Re: content-transfer-encoding: base64

Posted by trebor iksrazal <ik...@yahoo.com>.
Haven't tried it as an attachment. Of course over the
wire you could just convert it to a string: 

 ByteArrayOutputStream baos = new
ByteArrayOutputStream();
 ...
 new String(Base64.encode(baos.toByteArray()));

And of course wsdl has a base64 type - I recently sent
a zip as base64 with wsdl as I needed error handling. 


HTH, 
Robert (clearing my iksrazal inbox). 
http://www.braziloutsource.com/

--- Argo <ar...@hot.ee> wrote:

> Hi all,
> 
> Is it possible specify to
> Content-Transfer-Encoding:base64 for ws
> attachment with Axis 1.3?
> 
> I have a generated client class with method with
> DataHandler.
> DataHandler DataSource is simple
> ByteArrayDataSource. Bytes are encoded
> as base64. 
> 
> 
> -- Argo
> 


"None are more hopelessly enslaved than those who falsely believe they are free. -- Goethe"

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com