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
In Swift 3.0
func decodeBase64(toImage strEncodeData: String) -> UIImage { let dataDecoded = NSData(base64Encoded: strEncodeData, options: NSData.Base64DecodingOptions.ignoreUnknownCharacters)! let image = UIImage(data: dataDecoded as Data) return image! }