UIImage *imageData = [UIImage alloc];

NSData *DataOfImage = UIImageJPEGRepresentation(imageData, 1.0);
NSString *encodedString = [DataOfImage base64Encoding];

Advertisements