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 ?

질문됨 일 년 전331회 조회
1개 답변
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
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠