axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raphael Jean (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1906) CLONE -dime attachment content is empty if datahandler's source is not FileDataSource
Date Sat, 02 Apr 2005 15:16:18 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1906?page=comments#action_62031 ]
     
Raphael Jean commented on AXIS-1906:
------------------------------------

Unfortunately this issue is still not fixed in axis 1.2RC3. Using a DataSource instead of
a FileDataSource results in an empty attachment being sent.

> CLONE -dime attachment content is empty if datahandler's source is not FileDataSource
> -------------------------------------------------------------------------------------
>
>          Key: AXIS-1906
>          URL: http://issues.apache.org/jira/browse/AXIS-1906
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.1
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Raphael Jean

>
> The problem is that in DimeBodyPart for getDataSize(), if the source is not 
> FileDataSource we actually read the whole input stream and then close it. When 
> we close it we can no longer use the stream to write out the content. One 
> possible solution would be that while we read in the data to get the size, we 
> write it out to a ByteArrayOutputStream and then use it to write out the data 
> out.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message