1

I want get the image from an xml file which is encoded using base64.

I want to decode that data into image, but i don't know how to do that.

So please give me some instructions to find that...

Fattie
  • 27,874
  • 70
  • 431
  • 719
Anand
  • 3,346
  • 9
  • 35
  • 54

1 Answers1

3

There's a nice code sample at the bottom of this post. Very self-contained...

http://www.cocoadev.com/index.pl?BaseSixtyFour

for more read SO post

Community
  • 1
  • 1
Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76
  • 1
    There's a very nasty bug in the NSData category posted there, with the line: `realloc(bytes, length);`. This is wrong; you need to take into account the return value of realloc. – Nick Hutchinson Jun 17 '11 at 23:54