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] Created: (AXIS-1906) CLONE -dime attachment content is empty if datahandler's source is not FileDataSource
Date Sat, 02 Apr 2005 15:16:17 GMT
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