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]);
2.1m questions
2.1m answers
60 comments
57.0k users