Re: NSData Character Stream
Re: NSData Character Stream
- Subject: Re: NSData Character Stream
- From: Timo Hoepfner <email@hidden>
- Date: Wed, 4 Mar 2009 15:03:17 +0100
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden