在python3中將jpg轉成base64並寫入json

import base64 with open('./aa.jpg', 'rb') as f: qrcode = base64.b64encode(f.read()).decode() """ #The following is wrong, when json.dumps is run, it will raise error "TypeError: Object of typ
相關文章
相關標籤/搜索