You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/05/16 14:04:06 UTC
[jira] Resolved: (AXIS2-699) characters lost in binary attachment
using MTOM
[ http://issues.apache.org/jira/browse/AXIS2-699?page=all ]
Ajith Harshana Ranabahu resolved AXIS2-699:
-------------------------------------------
Resolution: Fixed
the problem was in the Axiom MIMEBodyPartInputStream class. Fixed the stream parsing logic to handle that
> characters lost in binary attachment using MTOM
> -----------------------------------------------
>
> Key: AXIS2-699
> URL: http://issues.apache.org/jira/browse/AXIS2-699
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Versions: 1.0
> Environment: windows XP, tomcat 5.5.17
> Reporter: Vassili Dzuba
> Assignee: Thilina Gunarathne
>
> i send a large binary attachment using a data handler over a file data source.
> the transport is HTTP.
> i use the file caching at the server side
> the cached file is different from the input file. Apparently character sequences CR LF
> (codes 13 10) are removed from the data.
> the client code is quite simple and derived from the provided sample,
> except that i replaced the ImageDataSource by a FileDataSource :
> OMElement method = fac.createOMElement("echo", omNs);
> FileDataSource ds = new FileDataSource(file);
> DataHandler dataHandler = new DataHandler(ds);
> OMText textData = fac.createOMText(dataHandler, true);
>
> OMElement value = fac.createOMElement("Text", omNs);
> value.addChild(textData);
> method.addChild(value);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira