📜  base64 python flask html - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:03.966000             🧑  作者: Mango

代码示例1
with open("sample.jpg", 'rb') as image_file:
    image_64_encode = base64.b64encode(image_file.read()).decode("utf-8")