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 3.0
To convert image to base64 string
Tested in playground
var logo = UIImage(named: "image_logo") let imageData:Data = UIImagePNGRepresentation(logo) let base64String = imageData.base64EncodedString() print(base64String)