请问如何用Asp代码存储图片文件到blob字段?(请修正我的代码)
我的代码如下:
a.asp:
<html>
<body>
<center>
<form name="mainForm" enctype="multipart/form-data"
action="b.asp" method="post">
<input type=file name=myfile><br>
<input type=submit name=ok value="确定">
</form>
</center>
</body>
</html>
b.asp:
<%
set conn=server.createobject("adodb.connection")
conn.Open "aaa","system","manager"
sql2="insert into czgl(blob) values("&request("myfile")&")"
set rs2=conn.execute(sql2)
conn.close
set conn=nothing
%>
错误类型:
请求对象, ASP 0208 (0x80004005)
调用 BinaryRead 后不能使用一般 Request 收集。
我知道肯定不行,可是正确的该如何写?