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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to