How to convert NSData value to UIImage

ios, nsdata, uiimage

Solution

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];

Problem

Possible Duplicate: NSData to UIImage How do I convert a NSData value to UIImage?

Original source

Related problems