creyl Fang
creyl Fang
I also encountered such a problem, and then I compared the example of the author reading the image, and the base64 content of the image I read was inconsistent, I...
@shivanraptor def image_to_base64(image_path): with open(image_path, "rb") as image_file: encoded_string = base64.b64encode(image_file.read()) base64_string = encoded_string.decode("utf-8") return base64_string This method does not work, I used it. When I switched to the method...
@shirubei Have you successfully run the sample code? Can you take a look at the structure of your folder?