tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daxin Zuo" <>
Subject RE: Upload MS DOC or Image file errors.
Date Fri, 29 Oct 2004 16:24:49 GMT
I changed to store the file into a byte array to instead a string. it seems
to me that convert a byte array of the contents of a MS DOC file to a string
cause error. The byte array is passed to another server via socket. the file
is stored at the destination correctly.
I use  FileOutputStream to see if the buffer stores a file correctly. it is
not a necessary part of my application.

-----Original Message-----
From: Steffen Heil []
Sent: Thursday, October 28, 2004 2:47 PM
To: 'Tomcat Users List'
Subject: AW: Upload MS DOC or Image file errors.

> Thanks. It works.


But what? Switching to FileOutputStream or just using item.write?
(They should both work, though the second seems to make more sence. Just
asking for interest.)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message