On this page

Show all

Help Center/ Object Storage Service/ SDK Reference/ Java/ FAQs (SDK for Java)/ How Can I Perform a Download in Multipart Mode? (Java SDK)

How Can I Perform a Download in Multipart Mode? (Java SDK)

Updated on 2025-01-24 GMT+08:00

In a multipart download, you can specify the range of data to be downloaded. The procedure is as follows:

  1. You need to initialize an instance of ObsClient by using AK, SK, and endpoint.
  2. Specify the bucket name and object name to initialize GetObjectRequest. Call GetObjectRequest.setRangeStart and GetObjectRequest.setRangeEnd to set the start and end points of the object data to be downloaded.
  3. Call ObsClient.getObject to send the GetObjectRequest request in step 2 to download the data in multipart mode.

For details, see Downloading an Object - Range-Based (SDK for Java).

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback