Working of getObject and getObjectContent methods in AWS S3 java SDK

0

I am using the below code to get the contents of the object.

s3Client.getObject(s3Bucket, s3Key).getObjectContent();

In the above code does getObject and getObjectContent download the object from the S3 bucket and buffer it or does getObjectContent get the contents of the file directly from S3 bucket as and when we read from the input stream retuned by the getObjectContent method ?

asked a year ago295 views
1 Answer
0

Greetings,

According to the AWS Java SDK 1.x documentation for getObjectContent(), the content of the object isn't buffered in memory and it't streamed from S3.

Hope this helps!

Wang
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions