📜  发布图像 Flask - Python 代码示例

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

代码示例1
def post_image(img_file):
    """ post image and return the response """
    img = open(img_file, 'rb').read()
    response = requests.post(URL, data=img, headers=headers)
    return response