Answers for "pil image base64"

0

pil image base64

import base64
from io import BytesIO

buffered = BytesIO()
image.save(buffered, format="JPEG")
img_str = base64.b64encode(buffered.getvalue())
Posted by: Guest on July-11-2021

Browse Popular Code Answers by Language