On Feb 16, 1:16 am, sukumar <bhashyam.suku...@gmail.com> wrote:
> Im trying to convert a byte array which is in Base64 format to String
> as below. Data was not assigned properly to the String. Do I need to
> pass the encoding type while creating the new String?. Please let me
> know the problem. Thanks.
>
>         String x = new String (b64byteArray);

The String constructor is intended to convert data from a given
character encoding (UTF-8, US-ASCII, ISO-8859-1) to the String
format.  The code above uses the platform's "default charset", defined
by the system.encoding system property.

What is it you're trying to do, and what results are you getting (i.e.
what does "not assigned properly" mean)?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to