Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert base64 to image python

# For both Python 2.7 and Python 3.x
import base64
with open("imageToSave.png", "wb") as fh:
    fh.write(base64.decodebytes(img_data))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #image #python
ADD COMMENT
Topic
Name
7+6 =