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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/04/23 23:49:27 UTC

[jira] Resolved: (AXIS-1126) dime attachment content is empty if datahandler's source is not FileDataSource

     [ http://issues.apache.org/jira/browse/AXIS-1126?page=all ]
     
Davanum Srinivas resolved AXIS-1126:
------------------------------------

    Resolution: Fixed

Use HTTP1.1 chunked...see http://marc.theaimsgroup.com/?l=axis-dev&m=111429226315957&w=2 for details. Had to make a code change as well.

-- dims

> dime attachment content is empty if datahandler's source is not FileDataSource
> ------------------------------------------------------------------------------
>
>          Key: AXIS-1126
>          URL: http://issues.apache.org/jira/browse/AXIS-1126
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.1
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Monika Gorkani
>     Assignee: Davanum Srinivas
>      Fix For: current (nightly)

>
> 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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira