Updated on 2025-05-16 GMT+08:00
Uploading an Object
This example uploads string Hello OBS to bucket bucketname as object objectname.
The example code is as follows:
PutObjectRequest request = new PutObjectRequest { BucketName = "bucketname", ObjectKey = "objectname", InputStream = new MemoryStream(Encoding.UTF8.GetBytes("Hello OBS")) }; client.PutObject(request);
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.
