当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP BinaryWrite 方法
The BinaryWrite method writes data directly to the output without any character conversion.
BinaryWrite(二进位输出)指令是直接向结果中写入数据,他不使用任何字符转换格式。
Tip: This method is used to write image data (BLOB) from a database to a browser.
提示:这个指令是用来把图片数据从数据库写入浏览器的。
response.BinaryWrite data |
| Parameter 参数 | Description 描述 |
|---|---|
| data | Required. The binary information to be sent 必用参数.用来发送二进制信息 |
| Example 1 If you have an object that generates an array of bytes, you can use BinaryWrite to send the bytes to an application: <%
Set objBinaryGen=Server.CreateObject("MyComponents.BinaryGenerator")
pic=objBinaryGen.MakePicture
response.BinaryWrite pic
%> |
评论 (0) All