Obtaining an Object
An OBS registered user or anonymous user with the read permission on an object can download the object content and metadata. You can download either an object or specified parts of an object.
- Downloading an object: Perform a single GET operation and the object stored in OBS can be returned.
- Downloading specified parts of an object: Use the Range HTTP header in the GET request to download a specific byte range of an object stored in OBS.
Once your application is ready, other parts of the object can be downloaded. When you only need parts of an object, this recoverable download function is very useful. This function is also convenient for you to respond to download failures due to poor network connections.
When you download an object, the metadata of the object is returned in the response header. Sometimes, you may want to overwrite a specific header value in the GET response. For example, you may want to overwrite the Content-Disposition response header in the GET request. The REST GET Object API allows you to specify the query string parameters in the GET request to overwrite the values.
If you want to obtain an object of a specific version from a bucket with the versioning function enabled, add the versionId parameter to the request.
For more information, see section Downloading Objects in the Object Storage Service API Reference.
Last Article: Copying an Object
Next Article: Deleting an Object
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.