请教高手!如何用asp调出数据库中的图片?????一定加分
3rose 2001-12-17 02:30:12 如何用asp调出数据库中的图片?????一定加分
<%
response.expires=0
response.buffer=true
response.clear
Response.ContentType = "image/*"
on error resume next
if Request.QueryString("pid")<>"" then
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from member where person_id=97"
if rs.RecordCount>0 then
Response.BinaryWrite rs("person_pic").getChunk(7500000)
end if
rs.close
set rs=nothing
end if
%>
图片没有显示。