Skip to main content

download_file_as_bytes

Function download_file_as_bytes 

pub fn download_file_as_bytes(url: &str, message: &str) -> Vec<u8> ⓘ
Expand description

Download the file at the specified url. File download progress is reported with the help of a progress bar.

§Arguments

  • url - The file URL to download.
  • message - The message to display on the progress bar during download.

§Returns

A vector of bytes containing the downloaded file data.