Click or drag to resize
IUploadedFile Methods

The IUploadedFile type exposes the following members.

Methods
  NameDescription
Public methodOpenReadStream
Opens the request stream for reading the uploaded file. Once the read is completed this stream should be disposed manually.
Top
Extension Methods
  NameDescription
Public Extension MethodGetBytes

Gets the content of uploaded file as byte array with array length equal to Length.

When the CanOpenReadStream is then the input stream will be accessed via OpenReadStream method and then disposed.

When the CanOpenReadStream is then the input stream will be accessed via InputStream method, attempted to seek to the beginning and then read.

(Defined by UploadedFileExtensions.)
Top
See Also