ASP BinaryWrite Method
Definition and Usage
The BinaryWrite method writes data directly to the output without character conversion.
Note:This method can be used to write property data (BLOB) from the database to the browser.
Syntax
response.BinaryWrite data
Parameter | 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 %>