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]);
1.4m articles
1.4m replys
5 comments
57.0k users