I am paring a XML and getting an image in Byte form and I have put that in a string. Now I have to draw that image.
I have tried to use various methods but no success. How can I do this?
Try converting the string to NSData:
NSString* str= ....
NSData* data=[str dataUsingEncoding:NSUTF8StringEncoding];
Then take a look at:
UIImage *image = [[UIImage alloc] initWithData:data];
Hope this helps.
[UIImage imageWithData:<#(NSData *)#>]is a method you tried?NSStringtoNSDatawith[myDataAsString dataUsingEncoding:NSUTF8StringEncoding]