I want to send image with raspberry pi 3 model B. Using the requests library, I can send text like this code here. But I don't know how to send image to a server. I need help to send it using requests library. If there another way or another library please tell me.
import requests
payload = {'fisrtName': 'kerolos' , 'lastName': 'Shenouda'}
r = requests.post('https://httpbin.org/post' , data = payload)
print(r.text)