So when I issue a get() what I have is a dict and the 'Body' member of the dict is a "StreamingBody' type and per How to save S3 object to a file using boto3, I see how I could read from this stream in chunks, but I'm wondering if there's an easier way to do this, a la boto.
Update: I have done
response = s3_client.get_object(Bucket=bn,Key=obj['Key'])
contents = response['Body'].read()
which seems to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With