axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24615] New: - dime attachment content is empty if datahandler's source is not FileDataSource
Date Tue, 11 Nov 2003 19:30:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24615>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24615

dime attachment content is empty if datahandler's source is not FileDataSource

           Summary: dime attachment content is empty if datahandler's source
                    is not FileDataSource
           Product: Axis
           Version: 1.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: mgorkani@us.ibm.com


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.

Mime
View raw message