I\'m trying to get the length of a UIImage. Not the width or height of the image, but the size of the data.
UIImage
UIImage *img = [UIImage imageNamed:@"sample.png"]; NSData *imgData = UIImageJPEGRepresentation(img, 1.0); NSLog(@"Size of Image(bytes):%d",[imgData length]);