python將圖片進行base64編碼, 解碼

1、將圖片進行base64編碼python import base64 img_path = 'D:xxx/file/img/juwan.jpg' with open(img_path, 'rb') as f: image_data = f.read() base64_data = base64.b64encode(image_data) # base64編碼 pri
相關文章
相關標籤/搜索