ResponseExtensions.WriteBinary ResponseExtensions.WriteBinary ResponseExtensions.WriteBinary Method

Definition

Overloads

WriteBinary(HttpResponseBase, Byte[]) WriteBinary(HttpResponseBase, Byte[]) 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) WriteBinary(HttpResponseBase, Byte[], String) 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[]) WriteBinary(HttpResponseBase, Byte[]) 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 HttpResponseBase HttpResponseBase

The HTTP response instance.

data
Byte[]

An array that contains the bytes to write.

WriteBinary(HttpResponseBase, Byte[], String) WriteBinary(HttpResponseBase, Byte[], String) 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 HttpResponseBase HttpResponseBase

The receiving HTTP response instance.

data
Byte[]

An array that contains the bytes to write.

mimeType
String String String

The MIME type of the binary content.

Applies to