Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pil image base64

import base64
from io import BytesIO

buffered = BytesIO()
image.save(buffered, format="JPEG")
img_str = base64.b64encode(buffered.getvalue())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pil #image
ADD COMMENT
Topic
Name
6+5 =