Answers for "base64qrcode to image swift"

0

convert image to base64 in swift ui

func convertImageToBase64(image: UIImage) -> String? {
    let imageData = image.jpegData(compressionQuality: 1)
    return imageData?.base64EncodedString(options: 
    Data.Base64EncodingOptions.lineLength64Characters)
   }
Posted by: Guest on July-26-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language