Gets a Stream instance to use to write request data.
Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
Visual Basic |
---|
Public Overrides Function GetRequestStream As Stream |
C# |
---|
public override Stream GetRequestStream() |
Return Value
A Stream to use to write request data.Remarks
The GetRequestStream()()()() method returns a stream to use to send data for the FtpWebRequest. Once the Stream instance has been returned, you can send data with the FtpWebRequest by using the Write(array<Byte>[]()[][], Int32, Int32) method.
Note: Unlike HttpWebRequest, you do not have to set the value of the ContentLength property before writing data to the stream. ContentLength is ignored.
CAUTION: You must call the Close()()()() method to close the stream and release the connection for reuse. Failure to close the stream will cause it to remain open and your application may run out of connections.