当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP BinaryRead 方法
The BinaryRead method is used to retrieve the data sent to the server from the client as part of a POST request. It will store the data in a safe array (an array that stores information about the number of dimensions and the bounds of its dimensions).
BinaryRead方法的作用是获取客户通过POST请求发送到服务器端的数据。它将把数据存储在一个安全的数组当中(这个数组存储了定义范围的数量和限度)。
Note: A call to Request.Form after a call to BinaryRead, and vice-versa, will cause an error.
注意:如果在BinaryRead之后请求Request.form,或是反过来,都会导致一个错误。
Request.BinaryRead(count) |
Parameter 参数 | Description 描述 |
---|---|
count | Required. Specifies how many bytes to read from the client 必要参数。指定来自于客户端的总字节数 |
The following example uses the BinaryRead method to place the content of a request into a safe array: <% dim a,b a=Request.TotalBytes b=Request.BinaryRead(a) %> |