Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fastapi upload image PIL

@app.post("/putObject")
async def put_object(request: Request, application: str, file: UploadFile = File(...)) -> str:
  request_object_content = await file.read()
  img = Image.open(io.BytesIO(request_object_content))
Source by github.com #
 
PREVIOUS NEXT
Tagged: #fastapi #upload #image #PIL
ADD COMMENT
Topic
Name
4+8 =