Updated on 2025-12-15 GMT+08:00
Downloading an Object
This example downloads object objectname from bucket bucketname.
The example code is as follows:
GetObjectRequest request = new GetObjectRequest() { BucketName = "bucketname", ObjectKey = "objectname", }; using (GetObjectResponse response = client.GetObject(request)) { //Save the object locally. string dest = "savepath"; if (!File.Exists(dest)) { response.WriteResponseStreamToFile(dest); } }
Parent topic: Quick Start
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.
