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/15 21:25:01 UTC
DO NOT REPLY [Bug 13665] New: -
A 0xFF in an attachment can mask as an EOF
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=13665>.
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=13665
A 0xFF in an attachment can mask as an EOF
Summary: A 0xFF in an attachment can mask as an EOF
Product: Axis
Version: 1.0-rc2
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Serialization/Deserialization
AssignedTo: axis-dev@xml.apache.org
ReportedBy: rcauble@motive.com
If I have a service:
public void MyService
{
public void foo(javax.activation.DataHandler in) throws Exception
{
InputStream is = in.getInputStream();
int count = 0;
int i;
System.out.println("AVAILABLE="+in.available());
while ((i = is.read()) != -1)
{
count++;
}
is.close();
System.out.println("COUNT="+count);
}
}
And I send an attachment of length 1000 with a 0xFF at byte 100, the output is:
AVAILABLE=1000
COUNT=100
I would expect the output to be:
AVAILABLE=1000
COUNT=1000