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
  • 35,446
  • 61
  • 386
  • 672
Anand
  • 3,003
  • 9
  • 33
  • 53

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,542
  • 8
  • 70
  • 75
  • 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