Am 04.03.2009 um 14:42 schrieb Rukmal Dias:

I want to upload file and read characters (unicode) of that file. NSData returns a ByteArrayInputStream (public ByteArrayInputStream stream()). I need to get a character stream bcos there may be many languages. Is there way to upload a file and get character strem.

If your file is encoded in UTF-8, use something like:

BufferedReader reader = new BufferedReader(new InputStreamReader (data.stream(), "UTF-8"));

Timo



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to