You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ss shah <ss...@yahoo.com> on 2008/07/01 04:45:29 UTC

Re: DIME attachment error

We fixed this problem as described in axis wiki :: http://wiki.apache.org/ws/FrontPage/Axis/AttachmentProblems
Ss
----- Original Message ----
From: ss shah <ss...@yahoo.com>
To: axis-user@ws.apache.org
Sent: Thursday, June 26, 2008 9:48:06 PM
Subject: DIME attachment error


Hi All,
 
We are getting following error in server when receiving a DIME attachment of size more than 1M from the client (client and server both are using Apache Axis 1.4)
 
java.io.IOException: End of physical stream detected when 10 more bytes expected
 
This happens only when client specially sets the format type to be DIME by following statement:
 
call.setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT,
                    Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);
 
If we remove above statement than default is MIME for apache axis and it works fine. 
 
Also we get the error ONLY for attachments larger than 1M, it works fine upto 1M.
 
Thanks,
Ss