convertir l'URL en image64 Image Py
import base64
import requests
def get_as_base64(url):
return base64.b64encode(requests.get(url).content)
Dead Dog
import base64
import requests
def get_as_base64(url):
return base64.b64encode(requests.get(url).content)
def cvt_2_base64(file_name):
with open(file_name , "rb") as image_file :
data = base64.b64encode(image_file.read())
return data.decode('utf-8')
//saving profile images from attackers without seeing the other photos