Share via


ResponseExtensions.WriteBinary Method (HttpResponseBase, Byte[])

Writes a sequence of bytes that represent binary content of an unspecified 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() _
)
'Usage
Dim response As HttpResponseBase 
Dim data As Byte()

response.WriteBinary(data)
public static void WriteBinary(
    this HttpResponseBase response,
    byte[] data
)
[ExtensionAttribute]
public:
static void WriteBinary(
    HttpResponseBase^ response, 
    array<unsigned char>^ data
)
static member WriteBinary : 
        response:HttpResponseBase * 
        data:byte[] -> unit
public static function WriteBinary(
    response : HttpResponseBase, 
    data : byte[]
)

Parameters

  • data
    Type: System.Byte[]
    An array that contains the bytes to write.

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).

See Also

Reference

ResponseExtensions Class

WriteBinary Overload

System.Web.WebPages Namespace