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
Certain SDK methods accept file objects as part of a request body or multi-part request. It is possible and typically recommended to upload files as a stream rather than reading the entire contents into memory. This avoids excessive memory consumption and potentially crashing with out-of-memory errors when working with very large files. The following example demonstrates how to attach a file stream to a request.
496
+
497
+
> [!TIP]
498
+
>
499
+
> For endpoints that handle file uploads bytes arrays can also be used. However, using streams is recommended for large files.
Certain SDK methods accept file objects as part of a request body or multi-part request. It is possible and typically recommended to upload files as a stream rather than reading the entire contents into memory. This avoids excessive memory consumption and potentially crashing with out-of-memory errors when working with very large files. The following example demonstrates how to attach a file stream to a request.
496
+
497
+
> [!TIP]
498
+
>
499
+
> For endpoints that handle file uploads bytes arrays can also be used. However, using streams is recommended for large files.
0 commit comments