You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the future, one can imagine that we would like to stream large files to a manager. When sending large files using the request lib (without streaming) is it very likely that python (the program) runs out of memory and we get a MemoryError. To avoid this one can use the requests_toolbelt package for streaming files in the request.post method.
Here is one working example where we stream the content of a file:
In the future, one can imagine that we would like to stream large files to a manager. When sending large files using the request lib (without streaming) is it very likely that python (the program) runs out of memory and we get a MemoryError. To avoid this one can use the
requests_toolbelt
package for streaming files in therequest.post
method.Here is one working example where we stream the content of a file:
In the endpoint, using
file: UploadFile
in the argument will get the whole streamed file.The text was updated successfully, but these errors were encountered: