Does anyone know how to convert a UIImage to a Base64 string, and then reverse it?
UIImage
I have the below code; the original image before encoding is good, bu
Swift-Extension:
extension UIImage{ func toBase64() -> String{ var imageData = UIImagePNGRepresentation(self) return imageData.base64EncodedStringWithOptions(.allZeros) } }