Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.Download

TElWebDAVClient     See also     


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


Downloads data from the server.

Declaration

[C#]
    void Download(string URL, string FilePath, bool Overwrite);
    void Download(TElWebDAVStorageObject Obj, string FilePath, bool Overwrite);
    void Download(string URL, System.IO.Stream Stream, int Count, long RestartFrom);
    void Download(TElWebDAVStorageObject Obj, System.IO.Stream Stream, int Count, long RestartFrom);
    void Download(string URL, System.IO.Stream Stream, int Count, long RestartFrom, TElWebDAVLockList Locks);
    void Download(TElWebDAVStorageObject Obj, System.IO.Stream Stream, int Count, long RestartFrom, TElWebDAVLockList Locks);

[VB.NET]
    Sub Download(ByVal URL As String, ByVal FilePath As String, ByVal Overwrite As Boolean)
    Sub Download(ByVal Obj As TElWebDAVStorageObject, ByVal FilePath As String, ByVal Overwrite As Boolean)
    Sub Download(ByVal URL As String, ByVal Stream As System.IO.Stream, ByVal Count As Integer, ByVal RestartFrom As Long)
    Sub Download(ByVal Obj As TElWebDAVStorageObject, ByVal Stream As System.IO.Stream, ByVal Count As Integer, ByVal RestartFrom As Long)
    Sub Download(ByVal URL As String, ByVal Stream As System.IO.Stream, ByVal Count As Integer, ByVal RestartFrom As Long, ByVal Locks As TElWebDAVLockList)
    Sub Download(ByVal Obj As TElWebDAVStorageObject, ByVal Stream As System.IO.Stream, ByVal Count As Integer, ByVal RestartFrom As Long, ByVal Locks As TElWebDAVLockList)

[Pascal]
    procedure Download(const URL : string; const FilePath : string; Overwrite : boolean = true);
    procedure Download(Obj : TElWebDAVStorageObject; const FilePath : string; Overwrite : boolean = true);
    procedure Download(const URL : string; Stream : TStream; Count : integer; RestartFrom : Int64 = -1);
    procedure Download(Obj : TElWebDAVStorageObject; Stream : TStream; Count : integer; RestartFrom : Int64 = -1);
    procedure Download(const URL : string; Stream : TStream; Count : integer; RestartFrom : Int64; Locks : TElWebDAVLockList);
    procedure Download(Obj : TElWebDAVStorageObject; Stream : TStream; Count : integer; RestartFrom : Int64; Locks : TElWebDAVLockList);

[C++]
    void Download(const std::string &URL, const std::string &FilePath, bool Overwrite);
    void Download(TElWebDAVStorageObject &Obj, const std::string &FilePath, bool Overwrite);
    void Download(TElWebDAVStorageObject *Obj, const std::string &FilePath, bool Overwrite);
    void Download(const std::string &URL, TStream &Stream, int32_t Count, int64_t RestartFrom);
    void Download(const std::string &URL, TStream *Stream, int32_t Count, int64_t RestartFrom);
    void Download(TElWebDAVStorageObject &Obj, TStream &Stream, int32_t Count, int64_t RestartFrom);
    void Download(TElWebDAVStorageObject *Obj, TStream *Stream, int32_t Count, int64_t RestartFrom);
    void Download(const std::string &URL, TStream &Stream, int32_t Count, int64_t RestartFrom, TElWebDAVLockList &Locks);
    void Download(const std::string &URL, TStream *Stream, int32_t Count, int64_t RestartFrom, TElWebDAVLockList *Locks);
    void Download(TElWebDAVStorageObject &Obj, TStream &Stream, int32_t Count, int64_t RestartFrom, TElWebDAVLockList &Locks);
    void Download(TElWebDAVStorageObject *Obj, TStream *Stream, int32_t Count, int64_t RestartFrom, TElWebDAVLockList *Locks);

[PHP]
    void Download(string $URL, string $FilePath, bool $Overwrite)
    void Download(TElWebDAVStorageObject $Obj, string $FilePath, bool $Overwrite)
    void Download(string $URL, TStream $Stream, integer $Count, integer $RestartFrom)
    void Download(TElWebDAVStorageObject $Obj, TStream $Stream, integer $Count, integer $RestartFrom)
    void Download(string $URL, TStream $Stream, integer $Count, integer $RestartFrom, TElWebDAVLockList $Locks)
    void Download(TElWebDAVStorageObject $Obj, TStream $Stream, integer $Count, integer $RestartFrom, TElWebDAVLockList $Locks)

[Java]
    void download(TElWebDAVStorageObject Obj, TElStream Stream, int Count, long RestartFrom);
    void download(String URL, TElStream Stream, int Count, long RestartFrom, TElWebDAVLockList Locks);
    void download(TElWebDAVStorageObject Obj, TElStream Stream, int Count, long RestartFrom, TElWebDAVLockList Locks);
    void download(String URL, String FilePath, boolean Overwrite);
    void download(TElWebDAVStorageObject Obj, String FilePath, boolean Overwrite);
    void download(String URL, TElStream Stream, int Count, long RestartFrom);

Parameters

  • URL - download URL.
  • Obj - object to be downloaded.
  • FilePath - local path where to save the downloaded data.
  • Overwrite - specifies whether to overwrite the existing local file.
  • Stream - stream where to save the downloaded data.
  • Count - the number of bytes to be downloaded.
  • 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.
  • Locks - the list of locks on the remote resource.

Description

    Use this method to download data from the WebDAV server.

See also:     GetFileSize     Upload    

Discuss this help topic in SecureBlackbox Forum