简体   繁体   中英

Download files from S3 without AWSSDK.S3 or other dependencies C#

I'm currently downloading files from S3 using AWSSDK.S3. I download the files as follows:

TransferUtility fileTransferUtility = new TransferUtility(new AmazonS3Client("xxxx", "xxxx"));

fileTransferUtility.Download("test/testdata.parquet", "test-bucket", "testdata.parquet");

I'm curious if it's possible to download this file from S3 without using AmazonS3Client or the AWSSDK.S3 dependency? I'm restricted with regard to the nuget packages I can use and would like to download files from S3 without any additional dependencies.

If you know the bucket(s) and file names and have proper S3 permissions you should be able to download the files using HTTPS.

AWS Bucket Access guide

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM