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 di...@apache.org on 2003/05/02 20:19:09 UTC
cvs commit: xml-axis/java/src/org/apache/axis/attachments DimeBodyPart.java
dims 2003/05/02 11:19:09
Modified: java/src/org/apache/axis/attachments DimeBodyPart.java
Log:
Fix for Bug 19495 - DIME attachments contained in a DataSource differerent from a FileDataSource do not work
from rathcale@us.ibm.com (Cale Rath)
Revision Changes Path
1.20 +4 -1 xml-axis/java/src/org/apache/axis/attachments/DimeBodyPart.java
Index: DimeBodyPart.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/attachments/DimeBodyPart.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- DimeBodyPart.java 22 Apr 2003 19:34:02 -0000 1.19
+++ DimeBodyPart.java 2 May 2003 18:19:09 -0000 1.20
@@ -480,7 +480,10 @@
if (bytesread > 0) dataSize += bytesread;
}
while (bytesread > -1);
- in.close();
+
+ //Leave the stream open for future reading
+ // and reset the stream pointer to the first byte
+ in.reset();
}
} catch (Exception e) {
log.error(Messages.getMessage("exception00"), e);