Controller.File Method (Byte[], String)
Creates a FileContentResult object by using the file contents and file type.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
protected internal FileContentResult File( byte[] fileContents, string contentType )
Parameters
- fileContents
- Type: System.Byte[]
The binary content to send to the response.
- contentType
- Type: System.String
The content type (MIME type).
Show: