6

Possible Duplicate:
NSData to UIImage

How do I convert a NSData value to UIImage?

Community
  • 1
  • 1
iosDev
  • 604
  • 3
  • 12
  • 28

1 Answers1

29

You can get UIImage from NSData as follows:

NSData *data = yourData;

UIImage *image = [UIImage imageWithData:data];

or

NSData *data = yourData;

UIImage *image = [[UIImage alloc] initWithData:data];
....
[image release];
Ilanchezhian
  • 17,426
  • 1
  • 53
  • 55