ASP BinaryWrite method
BinaryWrite method without character conversion of write data directly to the output.
Tip: This method can be used to write the image data (BLOB) from the database to the browser.
grammar
response.BinaryWrite data
参数 | 描述 |
---|---|
data | 必需。被发送的二进制信息。 |
Examples
If you have an object can generate a byte array, you can use BinaryWrite bytes sent to the application:
<%
Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator")
pic=objBinaryGen.MakePicture
response.BinaryWrite pic
%>
Complete Response Object Reference