FtpWebRequest.GetRequestStream Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetRequestStream()
Gets a Stream instance to use to write request data.
Declaration
public override Stream GetRequestStream()
Returns
Type | Description |
---|---|
Stream | A Stream to use to write request data. |
Overrides
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(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.