How to convert UIimage
to base64 encoded string? I couldn\'t find any examples or codes with detailed regarding.
There are changes in iOS 7 that allow this to be done without using any external categories to support Base64 encoding/decoding.
You could just write it directly using:
- (NSString *)base64String {
return [UIImagePNGRepresentation(self) base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
}