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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.