I have an application, in which
User selects an images from iPhone, for photo field,
Image is uploaded to the server,
Image size may be of 1 kb, or 10 kb or it may be 1 mb or 10 mb.
If image size is more than 5mb than image must be downsized upto 5mb before storing to the server.Question is How?is it Possible?
i have used following code for downloading image - for compressing image while loading,
imageDatafromPhoto = UIImageJPEGRepresentation([info objectForKey:@"UIImagePickerControllerOriginalImage"],0.2);
Thanks for helping me.