字段是images
images图片是什么
你写的
images图片 (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[images] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
“images图片”是表名呀
改成这样试试
<!--#include file="../include/opendb.asp"-->
<%id = cint(request("id"))
Set rec = Server.CreateObject("ADODB.Recordset")
strsql="select [images] from [images] where id=" & id
rec.open strsql,conn,1,1
Response.ContentType = "image/*"
Response.BinaryWrite rec("images").getChunk(7500000)
rec.close
set rec=nothing
set connGraph=nothing
%>