werafeedback.blogg.se

Download the java
Download the java













download the java

Whether to automatically decode the response header. If the value of this parameter is null, the file will be in the same local directory as the downloaded object. This parameter is effective only in the resumable download mode. The default value is false, which indicates that this mode is disabled.įile used to record the download progress. Whether to enable the resumable download mode. Maximum number of parts that can be concurrently downloaded. The value ranges from 100 KB to 5 GB and defaults to 9 MB. If the value of this parameter is null, the downloaded object is saved in the directory where the program is executed.

download the java

The following table describes the parameters involved in this API.įull path of the local directory to which the object is downloaded. You can call ObsClient.downloadFile to perform a resumable download. By virtue of this, resources are saved and efficiency is improved. Based on the download status of each part recorded in the checkpoint file, the re-downloading will download the parts failed to be downloaded previously, instead of downloading all parts. Otherwise, an exception is thrown to remind you of calling the API again for re-downloading. Only when all parts are successfully downloaded, the result indicating a successful download will be returned. The download result of each part is recorded in a checkpoint file in real time. To resolve such issues, you can use the API for resumable download, whose working principle is to divide the to-be-downloaded file into multiple parts and download them separately. It is a waste of resources to restart the download process upon a download failure, and the restarted download process may still suffer from the unstable network. Downloading large files often fails due to poor network conditions or program breakdowns.















Download the java