强调一下是用asp,数据库是oracle。
显示图片
在一个页面中用<img>方式方式
<img src="theimg.asp?sgbh=<%=request("sgbh")%>&xh=<%=request("ckxh")%>" width=400>
以下是上面程序中的theimg.asp文件
Set rs = Server.CreateObject("ADODB.recordset")
sql="select * from b_hn_sgbb_rtu where sgbh="&request("sgbh")&" and xh="&request("xh")&""
rs.open sql,cn,1,1
tu_size=rs("tu").ActualSize 图大小
Response.ContentType = rs("types") 图mime类型
Response.BinaryWrite rs("tu").getChunk(tu_size) 取出图片
当然前提是你的图片是以流文件的格式存储在oracle的long raw 字段中
参考一下吧。在sql server中通过。
http://www.chinaok.net/examples