I am trying to display the image which is in byte array .How do I
write to file and how to access that file to display the image ?

On Feb 9, 8:48 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> dilu wrote:
> > Hi All, I am getting image from server side as Base64 string in xml
> > form.Now i want to convert this base64 string into image.once it will
> > get converted into image then i will store it into my local database.
> >  Canany one tell me how to do this? Any example iOr sample code for
> > converting base64 string to image.
>
> There are many many examples online of converting Base64 into a byte
> array. Search on:
>
> base64 java byte[]
>
> in Google.
>
> Then, write the byte[] to a file with the appropriate extension given
> whatever format the image is in (PNG, GIF, etc.).
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to