public virtual void DownloadStream(
Stream destStream,
string remoteFile
)Public Overridable Sub DownloadStream (
destStream As Stream,
remoteFile As String
)public:
virtual void DownloadStream(
Stream^ destStream,
String^ remoteFile
)abstract DownloadStream :
destStream : Stream *
remoteFile : string -> unit
override DownloadStream :
destStream : Stream *
remoteFile : string -> unit Transfers are in the current TransferType. The stream is closed after the transfer is complete if CloseStreamsAfterTransfer is true (the default) is are left open otherwise. If the stream is left open the its position will be at the end of the stream. Use Seek(Int64, SeekOrigin) to change the position if required.
ftpConnection.CloseStreamsAfterTransfer = false;
MemoryStream memStr = new MemoryStream();
ftpConnection.DownloadStream(memStr, "filename");
memStr.Seek(0, SeekOrigin.Begin);
StreamReader inStr = new StreamReader(memStr);
... use sr for whatever ...