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 ?

1 Resposta
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
respondido há 7 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas