Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ftp.GetDownloadStream Method

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

GetDownloadStream(String, SeekOrigin, Int64)

Returns a Stream for reading data from the remote file.

Declaration
public Stream GetDownloadStream(string remotePath, SeekOrigin origin, long offset)
Parameters
Type Name Description
String remotePath

The path of the remote file.

SeekOrigin origin

Position indicator that is used to obtain new position within the stream.

Int64 offset

A byte offset relative to the origin parameter.

Returns
Type Description
Stream

A Stream for reading data from the remote file.

Implements
IFtp.GetDownloadStream(String, SeekOrigin, Int64)
Remarks

Because the FTP protocol does not support processing multiple commands or transfers at the same time, the stream has to be closed before any other FTP operation can be used.

GetDownloadStream(String)

Returns a Stream for reading data from the remote file.

Declaration
public Stream GetDownloadStream(string remotePath)
Parameters
Type Name Description
String remotePath

The path of the remote file.

Returns
Type Description
Stream

A Stream for reading data from the remote file.

Implements
IFtp.GetDownloadStream(String)
Remarks

Because the FTP protocol does not support processing multiple commands or transfers at the same time, the stream has to be closed before any other FTP operation can be used.

In This Article
  • GetDownloadStream(String, SeekOrigin, Int64)
  • GetDownloadStream(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies