Salman Shaikh
Salman Shaikh

Reputation: 595

Method to upload file as zip of S3

I am using AWS SDK Java for file upload. I want to upload a file on s3 as zip.

Is there any method which will directly zip my file which I upload on s3.

Or It is mandatory for me to create a zip and then upload to s3.

Thank you.

Upvotes: 3

Views: 5047

Answers (1)

Chris
Chris

Reputation: 3657

You're required to either zip the file before uploading it, or use a Lambda function to zip the file once it's uploaded.

There is no 'helper' in the SDK to achieve what you're asking.

Upvotes: 2

Related Questions