hey guys,
I want to get access to the information of my UIImage object which is displayed on the screen with an UIImageView object called imageView.
Does somebody know how I get an NSData object from the UIImage?
I found something interesting in the web, but it does not work.
NSData* imgData = UIImageJPEGRepresentation(imageView.image, 1.0);
The size of the NSData object is zero, although there is an image displayed in the UIImageView object.
Thanks for your help ...
I want to get access to the information of my UIImage object which is displayed on the screen with an UIImageView object called imageView.
Does somebody know how I get an NSData object from the UIImage?
I found something interesting in the web, but it does not work.
NSData* imgData = UIImageJPEGRepresentation(imageView.image, 1.0);
The size of the NSData object is zero, although there is an image displayed in the UIImageView object.
Thanks for your help ...