ResponseExtensions.WriteBinary Method

Definition

Overloads

WriteBinary(HttpResponseBase, Byte[])

Writes a sequence of bytes that represent binary content of an unspecified type to the output stream of an HTTP response.

WriteBinary(HttpResponseBase, Byte[], String)

Writes a sequence of bytes that represent binary content of the specified MIME type to the output stream of an HTTP response.

WriteBinary(HttpResponseBase, Byte[])

Writes a sequence of bytes that represent binary content of an unspecified type to the output stream of an HTTP response.

public static void WriteBinary (this System.Web.HttpResponseBase response, byte[] data);
static member WriteBinary : System.Web.HttpResponseBase * byte[] -> unit
<Extension()>
Public Sub WriteBinary (response As HttpResponseBase, data As Byte())

Parameters

response
HttpResponseBase

The HTTP response instance.

data
Byte[]

An array that contains the bytes to write.

Applies to

WriteBinary(HttpResponseBase, Byte[], String)

Writes a sequence of bytes that represent binary content of the specified MIME type to the output stream of an HTTP response.

public static void WriteBinary (this System.Web.HttpResponseBase response, byte[] data, string mimeType);
static member WriteBinary : System.Web.HttpResponseBase * byte[] * string -> unit
<Extension()>
Public Sub WriteBinary (response As HttpResponseBase, data As Byte(), mimeType As String)

Parameters

response
HttpResponseBase

The receiving HTTP response instance.

data
Byte[]

An array that contains the bytes to write.

mimeType
String

The MIME type of the binary content.

Applies to