Xceed .NET Libraries Documentation
Xceed.Ftp Assembly / Xceed.Ftp Namespace / FtpClient Class / GetDownloadStream Method / GetDownloadStream(String) Method
The filename of the file to retrieve. Some FTP servers may be case-sensitive!


In This Topic
    GetDownloadStream(String) Method
    In This Topic
    Retrieves a direct access to the readonly data stream being received.
    Syntax
    'Declaration
     
    Public Overloads Function GetDownloadStream( _
       ByVal remoteFilename As String _
    ) As Stream
    'Usage
     
    Dim instance As FtpClient
    Dim remoteFilename As String
    Dim value As Stream
     
    value = instance.GetDownloadStream(remoteFilename)
    public Stream GetDownloadStream( 
       string remoteFilename
    )

    Parameters

    remoteFilename
    The filename of the file to retrieve. Some FTP servers may be case-sensitive!

    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