tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daxin Zuo" <d...@techexcel.com>
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.
Thanks.

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


> Thanks. It works.

Fine.

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.)

Regards,
  Steffen



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message