Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Uploading a unicoded file


Message #1 by =?iso-8859-1?Q?Erik_Gr=F8ntoft_Dybdahl?= <erik.dybdahl@t...> on Thu, 21 Sep 2000 13:53:29 +0200
Hello,
does anybody know an easy way to fetch the content (and nothing more,
nothing less) of a file uploaded from the client?
If the file contains unicode, the request will be a mix of headerinfo in
straight ascii, possibly other parameters,
and, in among this, unicode characters from the uploaded file.
I want to send the content of the file through an XML-parser, which needs a
Reader.
So I have to read the whole input into a buffer, and setup a CharArrayReader
on it, not?
But first I have to discard the bytes before and after the actual file
contents.
There must be another way of getting hold of just the file contents than to
chop up the request in pieces "by hand"
Or?

Any help appreciated (if it does not start with "Have you tried").

Regards,
erik




  Return to Index