当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP BinaryWrite 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP BinaryWrite 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 504 ::
收藏到网摘: n/a

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.
提示:这个指令是用来把图片数据从数据库写入浏览器的。

Syntax
语法

response.BinaryWrite data

Parameter
参数
Description
描述
data Required. The binary information to be sent
必用参数.用来发送二进制信息

Examples
举例

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

登陆 | 还没注册?