Xceed .NET Libraries Documentation
GetDownloadStream(String,Int64) Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpClient Class > GetDownloadStream Method : GetDownloadStream(String,Int64) Method
The filename of the file to retrieve. Some FTP servers may be case-sensitive!
The byte offset (of the remote file) at which to start receiving data from the remote file.
Retrieves a direct access to the readonly data stream being received, beginning at the specified offset.
Syntax
'Declaration
 
Public Overloads Function GetDownloadStream( _
   ByVal remoteFilename As String, _
   ByVal offset As Long _
) As Stream
'Usage
 
Dim instance As FtpClient
Dim remoteFilename As String
Dim offset As Long
Dim value As Stream
 
value = instance.GetDownloadStream(remoteFilename, offset)
public Stream GetDownloadStream( 
   string remoteFilename,
   long offset
)

Parameters

remoteFilename
The filename of the file to retrieve. Some FTP servers may be case-sensitive!
offset
The byte offset (of the remote file) at which to start receiving data from the remote file.

Return Value

The data System.IO.Stream to read from
Remarks

The FTP client will remain in a "ReceivingFile" state until the stream is closed.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FtpClient Class
FtpClient Members
Overload List