Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.UploadStream

TElSimpleFTPSClient     See also     


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


Uploads stream contents to the remote file.

Declaration

[C#]
    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, ByVal 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 UploadStream(TStream &LocalStream, std::string RemoteFileName, TSBFileTransferMode Mode);
    void UploadStream(TStream &LocalStream, std::string RemoteFileName, TSBFileTransferMode Mode, int64_t &RestartFrom);

[PHP]
    void UploadStream(TStream $LocalStream, string $RemoteFileName, TSBFileTransferMode $Mode);
    void UploadStream(TStream $LocalStream, string $RemoteFileName, TSBFileTransferMode $Mode, integer $RestartFrom);

[Java]
    void UploadStream(TElStream LocalStream, string RemoteFileName, TSBFileTransferMode Mode);
    void UploadStream(TElStream LocalStream, string RemoteFileName, TSBFileTransferMode Mode, long RestartFrom);

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.

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