Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.Download

TElWebDAVClient     See also     


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


Downloads data from the server.

Declaration

[C#/Java]
    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; const Overwrite : boolean = true);
    procedure Download(Obj : TElWebDAVStorageObject; const FilePath : string; const 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);

[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)

Parameters

  • URL - download URL.
  • Obj - object to be downloaded.
  • FilePath - local path where to save the downloaded data.
  • Overwrite - specifies whether to overwrite existing file.
  • Stream - stream where to save the downloaded data.
  • Count - 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 -

Description

    Use this method to download data from the WebDAV server.

See also:     GetFileSize     Upload    

Discuss this help topic in SecureBlackbox Forum