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 bu...@apache.org on 2002/10/30 19:19:32 UTC

DO NOT REPLY [Bug 14096] New: - Attachment as InputStream error: incorrect read implementation

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=14096>.
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=14096

Attachment as InputStream error: incorrect read implementation

           Summary: Attachment as InputStream error: incorrect read
                    implementation
           Product: Axis
           Version: 1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: azoldi@yahoo.com


I am sending a SOAP attachment, getting it serialized as a DataHandler object.
Then I am reading it on the client, I get an InputStream by calling
getInputStream on the DataHandler.

Then I call a number of times the read method on this InputStream instance. The
values I get are in the range of: [-128 ... 127]
This is not correct, according to the InputStream doc, the values should be
always in the [0 .. 255] range, or -1 when end of stream.

The InputStream instance is question is of type
ManagedMemoryDataSource.Instream, which implements the read method from
InputStream incorrectly.

(An AND with 0x00ff should solve this.)