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
when getFile downloads a video file, it tries to return the file contents in a string. This is a problem for several reasons:
Video files are very large, and really shouldn't be fetched in-memory anyway, but streamed directly to some destination.
Video files tend to be larger than the max string size, so this fails anyway, even if there is sufficient memory for it.
Video files are not text, and thus should not be in strings. This applies to several other methods as well, such as all of the image section of the api. These things should be returned in Buffers or in Streams, ideally giving the consumer the choice. If they can only be one, they should be Streams.
The text was updated successfully, but these errors were encountered:
when getFile downloads a video file, it tries to return the file contents in a string. This is a problem for several reasons:
The text was updated successfully, but these errors were encountered: