大虾 ------HELP-- 数据库 读取图片问题
下面代码正确吗?-------------------------------
<OK.ASP>页面
----------------------------
<!--#include file="conn.asp"-->
<%
c="select id from images"
set rs=server.createobject("ADODB.recordset")
rs.open c,conn,1,1
do until rs.eof
whatid=rs("id")
%>
<[email=%@LANGUAGE=]%@LANGUAGE="VBSCRIPT[/email]" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url=http://www.]http://www.[/url]">
<html xmlns="[url=http://www.]http://www.[/url]">
<head>
<meta http-equiv="Content-Type" c />
<title>无标题文档</title>
</head>
<body>
<div style=" background-color:#FFFF55;">img src="5.asp?id=<%=id%>">
</div>
<%
rs.movenext
loop%>
</body>
</html>
------------------------------
<5.ASP>页面
---------------------------------
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("ADODB.recordset")
sql="select * from images where id="&trim(request("id"))
rs.open sql,conn,1,1
Response.C
Response.BinaryWrite rs("img").getChunk(7500000)
rs.close
set rs=nothing
set conn=nothing
%>
<[email=%@LANGUAGE=]%@LANGUAGE="VBSCRIPT[/email]" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url=http://www.]http://www.[/url]">
<html xmlns="[url=http://www.]http://www.[/url]">
<head>
<meta http-equiv="Content-Type" c />
<title>无标题文档</title>
</head>
<body>
</body>
</html>
-----------------------------------------------------------------------
数据库上传图片成功了的 但是读取的时候有问题
谢谢!!!!!