Hello Gurus,
We would like to convert UIImage the raw binary data to string and reverse the string to UIImage object.
At most of the place we found below block.
Is there any way to convert UIImage to String without converting JPG/PNG/HEIC ?
We would like to convert UIImage the raw binary data to string and reverse the string to UIImage object.
At most of the place we found below block.
Code Block extension String { func toImage() -> UIImage? { if let data = Data(base64Encoded: self, options: .ignoreUnknownCharacters){ return UIImage(data: data) } return nil } }
Is there any way to convert UIImage to String without converting JPG/PNG/HEIC ?