On Monday 10 January 2011 9:04:46 pm erskine wrote:
> Hi.
> 
> Just wanted to ask how to set Content-Transfer-Encoding of a soap
> attachment.

I just checked the code and at this point, we only support binary, not base64, 
for writing attachments.   For reading, we also support quoted-printable, but 
only binary for writing.

A patch would be welcome if you are interested.   :-)    Something around line 
173 of AttachmentUtil.java for reading and a few changes in 
AttachmentSerializer.java for writing.

Dan


> 
> Here's a snippet of my code...
> 
>             AttachmentImpl att =
>                 new AttachmentImpl(id,
>                                    new DataHandler(new
> AttachmentDataSource(attachment.getContent(),
> 
> attachment.getContentType())));
>             att.setHeader("Content-Transfer-Encoding", "base64");
> 
> But the attachment's Content-Transfer-Encoding is always sent as binary
> (validated through tcpmon); so when I try to open the attachment received
> in soapui, the attachment is garbled and looks like it was not decoded.
> 
> Thanks in advance.
> Kin

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to