I tying to check my image size after picking form the photo library by using this code.
NSData *imageData1 = [[NSData alloc] initWithData:UIImageJPEGRepresentation((imageview.image), 0.5)];
int imageSize = imageData1.length;
NSLog(@"SIZE OF IMAGE: %i ", imageSize);
But showing something like this .
SIZE OF IMAGE: 237125
But i want to view the image size in the MB format like 25 MB how to do pls tell me how to do it.
thanks.