BinaryWrite

The BinaryWrite method writes the specified information to the current HTTP output without any character conversion. This method is useful for writing nonstring information such as binary data required by a custom application.

Syntax

Response.BinaryWrite data
 

Parameters

data
The data to write to the HTTP output.

Example

If you have an object that generates an array of bytes, you can use the following call to BinaryWrite to send the bytes to a custom application.

<%
Set BinGen = Server.CreateObject(MY.BinaryGenerator)
Pict = BinGen.MakePicture
Response.BinaryWrite Pict
%> 

Applies To

Response Object

See Also

Write