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 UploadStream(System.IO.Stream LocalStream, string RemoteFileName, TSBFileTransferMode Mode);
    void UploadStream(System.IO.Stream LocalStream, string RemoteFileName, TSBFileTransferMode Mode, long RestartFrom);

[VB.NET]
    Sub UploadStream(ByVal LocalStream As System.IO.Stream, ByVal RemoteFileName As String, Mode As TSBFileTransferMode)
    Sub UploadStream(ByVal LocalStream As System.IO.Stream, ByVal RemoteFileName As String, ByVal Mode As TSBFileTransferMode, ByVal RestartFrom As Long)

[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