ASP如何调用ACCESS数据库二进制图片
2个回答
展开全部
showimg.asp
<!--#include file="conn.asp" -->
<%
name=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
strsql="select * from userinfo where UserName=" & name
rs.open strsql,conn,1,1
Response.ContentType = "image/*"
Response.BinaryWrite rs("Image").getChunk(7500000)
rs.close
set rs=nothing
set conn=nothing
%>
调用就<img src=showimg.asp?id=1>
<!--#include file="conn.asp" -->
<%
name=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
strsql="select * from userinfo where UserName=" & name
rs.open strsql,conn,1,1
Response.ContentType = "image/*"
Response.BinaryWrite rs("Image").getChunk(7500000)
rs.close
set rs=nothing
set conn=nothing
%>
调用就<img src=showimg.asp?id=1>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询