/1[], String)
Writes a sequence of bytes that represent binary content of the specified MIME type to the output stream of an HTTP response.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub WriteBinary ( _
response As HttpResponseBase, _
data As Byte(), _
mimeType As String _
)
'Usage
Dim response As HttpResponseBase
Dim data As Byte()
Dim mimeType As String
response.WriteBinary(data, mimeType)
public static void WriteBinary(
this HttpResponseBase response,
byte[] data,
string mimeType
)
[ExtensionAttribute]
public:
static void WriteBinary(
HttpResponseBase^ response,
array<unsigned char>^ data,
String^ mimeType
)
static member WriteBinary :
response:HttpResponseBase *
data:byte[] *
mimeType:string -> unit
public static function WriteBinary(
response : HttpResponseBase,
data : byte[],
mimeType : String
)
Parameters
- response
Type: System.Web.HttpResponseBase
The receiving HTTP response instance.
- data
Type: System.Byte[]
An array that contains the bytes to write.
- mimeType
Type: System.String
The MIME type of the binary content.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpResponseBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).