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
# get object from s3
response = await client.get_object(Bucket=bucket, Key=key)
# this will ensure the connection is correctly re-used/closed
async with response['Body'] as stream:
assert await stream.read() == data
For large files (more than GB), stream.read() will cause OOM. Are there any examples of segmented reading?
The text was updated successfully, but these errors were encountered:
For large files (more than GB), stream.read() will cause OOM. Are there any examples of segmented reading?
The text was updated successfully, but these errors were encountered: