System.Web.UI.WebControls.FileUpload.FileContent Property

Gets a System.IO.Stream object that points to a file to upload using the System.Web.UI.WebControls.FileUpload control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public System.IO.Stream FileContent { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The FileUpload.FileContent property gets a System.IO.Stream object that points to a file to upload by using the System.Web.UI.WebControls.FileUpload control. Use the FileUpload.FileContent property to access the contents of the file. For example, you can use the System.IO.Stream object that is returned by this property to read the contents of the file as bytes and store them in a byte array.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0