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 réponse
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
répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions