axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r232385 - /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/PartOnFile.java
Date Fri, 12 Aug 2005 20:50:46 GMT
Author: dims
Date: Fri Aug 12 13:50:45 2005
New Revision: 232385

URL: http://svn.apache.org/viewcvs?rev=232385&view=rev
Log:
Stop looking ahead as the instream is empty


Modified:
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/PartOnFile.java

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/PartOnFile.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/PartOnFile.java?rev=232385&r1=232384&r2=232385&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/PartOnFile.java
(original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/PartOnFile.java
Fri Aug 12 13:50:45 2005
@@ -50,6 +50,9 @@
             fileOutStream.write(value);
             while (!inStream.getBoundaryStatus()) {
                 value = inStream.read();
+                if(value == -1) {
+                    break;
+                }
                 if (!inStream.getBoundaryStatus()) {
                     fileOutStream.write(value);
                 }



Mime
View raw message