I need send image from client via request library with some json data to flask server. I found some tips but everything was either confucing or doesn't work.
I guest that it will look something like:
image = open('some_image.pgm', 'rb')
description = {"author" : "Superman", "sex" : "male"}
url = "localhost://995/image"
request = requests.post(url, file = image, data = description)
Thanks in advance for your help.