ASP BinaryWrite 方法

BinaryWrite 方法在不进行字符转换的情况下直接向输出写数据。
提示:此方法可用于从数据库向浏览器写图像数据(BLOB)。
语法
response.BinaryWrite data
参数 | 描述 |
---|---|
data | 必需。被发送的二进制信息。 |
实例
如果您有一个可生成字节数组的对象,可使用 BinaryWrite 向应用程序发送字节:
<%
Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator")
pic=objBinaryGen.MakePicture
response.BinaryWrite pic
%>
