Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert url to base64 image py

import base64
import requests


def get_as_base64(url):

    return base64.b64encode(requests.get(url).content)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #url #image #py
ADD COMMENT
Topic
Name
5+2 =