Multipart Upload Overview (SDK for Java)
Function
You can upload large files using multipart upload. Multipart upload is applicable to many scenarios, including:
- Files to be uploaded are larger than 100 MB.
- The network condition is poor. Connection to the OBS server is constantly down.
- Sizes of files to be uploaded are uncertain.
A multipart upload has the following advantages:
- Higher throughput: You can upload parts in parallel to improve throughput.
- Quick recovery from network failures: Uploading an object in parts helps minimize the impact of upload interruptions caused by network failures.
- Flexible suspension and resumption of object uploads: You can upload parts at any time. A multipart upload will not expire after being initiated. You must explicitly complete or abort a multipart upload.
- No need to know the size before uploading an object: You can upload an object while creating it.
A multipart upload consists of the following steps:
- Initiate a multipart upload (ObsClient.initiateMultipartUpload).
- Upload parts one by one or concurrently (ObsClient.uploadPart).
- Assemble parts (ObsClient.completeMultipartUpload) or abort the multipart upload (ObsClient.abortMultipartUpload).
If you have any questions during development, post them on the Issues page of GitHub.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot