Python Request send image
I have a fastapi app where one of my endpoints reads as: @app.post( "/testing", name="testing", tags=["pluggin"], ) def testing(images: List[bytes] = File(…)): #do whatever how can I send a request with an image so the endpoint will read it correctly? Right now I have: import requests f = io.BytesIO(file readed in binary) files = {‘file’:… Read More Python Request send image