怎么样在VB中将ACCESS数据库中的OLE图片用PICTURE控件或者IMAGE控件显示出来???
1个回答
展开全部
建个ASP文件
......
打开数据库
set rec=server.createobject("ADODB.recordset")
................
.............
myimagedata=rec("pic").getChunk(7500000)
Response.ContentType = "image/*"
Response.BinaryWrite myimagedata
.......................
rec.close
set rec=nothing
set connGraph=nothing
.....................
===================
PICTURE 的路径设为这个ASP文件!
......
打开数据库
set rec=server.createobject("ADODB.recordset")
................
.............
myimagedata=rec("pic").getChunk(7500000)
Response.ContentType = "image/*"
Response.BinaryWrite myimagedata
.......................
rec.close
set rec=nothing
set connGraph=nothing
.....................
===================
PICTURE 的路径设为这个ASP文件!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询