Answers for "post an image Flask"

-1

post an image Flask

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
Posted by: Guest on October-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language