Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP BinaryWrite Method

ASP BinaryWrite Method


Response Object Reference Complete Response object reference manual


The BinaryWrite method writes data directly to the output without any character conversion.

**Tip:** This method can be used to write image data (BLOB) from a database to the browser.

Syntax

response.BinaryWrite data

Parameters Description
data Required. The binary information to be sent.

Example

If you have an object that can generate a byte array, you can use BinaryWrite to send bytes to the application:

<% Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator") pic=objBinaryGen.MakePicture response.BinaryWrite pic %>


Response Object Reference Complete Response object reference manual