ASP BinaryWrite Method
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 %>
Complete Response object reference manual