Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.DownloadFile

TElWebDAVClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Downloads data and saves it to a local file.

Declaration

[C#]
    void DownloadFile(string URL, string LocalFileName);
    void DownloadFile(string URL, string LocalFileName, TSBFileTransferMode Mode);
    void DownloadFile(string URL, string LocalFileName, TSBFileTransferMode Mode, long RestartFrom);

[VB.NET]
    Sub DownloadFile(ByVal URL As String, ByVal LocalFileName As String)
    Sub DownloadFile(ByVal URL As String, ByVal LocalFileName As String, ByVal Mode As TSBFileTransferMode)
    Sub DownloadFile(ByVal URL As String, ByVal LocalFileName As String, ByVal Mode As TSBFileTransferMode, ByVal RestartFrom As Long)

[Pascal]
    procedure DownloadFile(URL, LocalFileName : string);
    procedure DownloadFile(URL, LocalFileName : string; Mode : TSBFileTransferMode);
    procedure DownloadFile(URL, LocalFileName : string; Mode : TSBFileTransferMode; RestartFrom : Int64);

[C++]
    void DownloadFile(const std::string &URL, const std::string &LocalFileName);
    void DownloadFile(const std::string &URL, const std::string &LocalFileName, TSBFileTransferMode Mode);
    void DownloadFile(const std::string &URL, const std::string &LocalFileName, TSBFileTransferMode Mode, int64_t RestartFrom);

[PHP]
    void DownloadFile(string $URL, string $LocalFileName)
    void DownloadFile(string $URL, string $LocalFileName, integer $Mode)
    void DownloadFile(string $URL, string $LocalFileName, integer $Mode, integer $RestartFrom)

[Java]
    not available

Parameters

  • URL - the URL of the remote resource.
  • LocalFileName - the name of the local file where the data should be saved.
  • Mode - specifies the data transfer mode.
  • RestartFrom - if the data has been partially downloaded, specifies where to restart the download from. If the value is -1, the download will restart from the beginning.

TSBFileTransferMode values

Description

    Use this method to download data from a remote resource and save it to a file in the local file system.

See also:     DownloadStream    

Discuss this help topic in SecureBlackbox Forum