Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.Send

TElSimpleFTPSClient     See also     


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


Uploads stream contents to the remote file.

Declaration

[C#/Java]
    void Send(System.IO.Stream Stream, string FileName, long StartPos, long EndPos, bool Append, long RestartFrom);
    void Send(System.IO.Stream Stream, string FileName, long RestartFrom);
    void Send(System.IO.Stream Stream, string FileName);

[VB.NET]
    Sub Send(ByVal Stream As System.IO.Stream, ByVal FileName As String, ByVal StartPos As Long, ByVal EndPos As Long, ByVal Append As Boolean, ByVal RestartFrom As Long)
    Sub Send(ByVal Stream As System.IO.Stream, ByVal FileName As String, ByVal RestartFrom As Long)
    Sub Send(ByVal Stream As System.IO.Stream, ByVal FileName As String)

[Pascal]
    procedure UploadStream(LocalStream : TStream; RemoteFileName : string; Mode : TSBFileTransferMode);
    procedure UploadStream(LocalStream : TStream; RemoteFileName : string; Mode : TSBFileTransferMode; RestartFrom : Int64);

[C++]
    void Send(TStream &Stream, const std::string &FileName, int64_t StartPos, int64_t EndPos, bool Append, int64_t RestartFrom);
    void Send(TStream *Stream, const std::string &FileName, int64_t StartPos, int64_t EndPos, bool Append, int64_t RestartFrom);
    void Send(TStream &Stream, const std::string &FileName, int64_t RestartFrom);
    void Send(TStream *Stream, const std::string &FileName, int64_t RestartFrom);
    void Send(TStream &Stream, const std::string &FileName);
    void Send(TStream *Stream, const std::string &FileName);

[PHP]
    void Send(TStream $Stream, string $FileName, integer $StartPos, integer $EndPos, bool $Append, integer $RestartFrom)
    void Send(TStream $Stream, string $FileName, integer $RestartFrom)
    void Send(TStream $Stream, string $FileName)

Parameters

  • LocalStream - local stream to be uploaded
  • RemoteFileName - remote name of the uploaded file
  • Mode - specifies what to do if the file with the same name already exists
  • RestartFrom - can be used to resume broken transfer operation.When RestartFrom is set to non-zero positive value, the file being transferred is read starting from RestartFrom position and is written also starting from RestartFrom position.
  • Stream - ...
  • FileName - ...
  • StartPos - ...
  • EndPos - ...
  • Append - ...

Values


Description

    Use this method to upload contents of the stream and store them as a file on the server.

See also:     FileSystemAdapter     DownloadStream     UploadFile     UploadFiles     Send    

Discuss this help topic in SecureBlackbox Forum