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 ?

posta un anno fa331 visualizzazioni
1 Risposta
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
con risposta 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande