ASP BinaryWriteMethod
Complete Response Object Reference Manual
The BinaryWrite method writes data directly to the output without 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. |
Examples
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 Other Extensions