Updated on 2023-06-15 GMT+08:00

Downloading Files

This section describes how to download files from OBS.

API Calling

HiLensEC hilens::DownloadFileFromOBS(const std::string & url, const std::string & downloadTo)

Parameter Description

Table 1 Parameters

Parameter

Description

url

The URL of the OBS resource you want to download. For details on how to obtain the URL, see Accessing an Object Using Its URL.

download_to

The directory where you want to download the file to

Return Values

If the return value is 0, the operation is successful. Otherwise, the operation fails. For details about the failure response parameters, see Error Codes.