如何直接从以二进制形式储存的数据库中读取数据?

loveleilei 2003-10-18 04:26:10
我有一个project,需要直接从以二进制形式储存的数据库中读取数据,请问该如何解决
...全文
27 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lxcc 2003-10-20
  • 打赏
  • 举报
回复
http://support.microsoft.com/default.aspx?scid=kb;EN-US;258038
Micro_Sheng 2003-10-20
  • 打赏
  • 举报
回复
以下是一段从数据库中读取图片二进制信息的代码
希望对你有所帮助

set connGraph=opendb("connGraph")
set rec=server.createobject("ADODB.recordset")
strsql="SELECT * FROM CCIC_NetSchool_Images where chapterid= "& chapterid &" and contentflag='"& contentflag &"' and imageid= "& imageid &" "

rec.open strsql,connGraph,1,1
Response.ContentType = "image/*"
Response.BinaryWrite rec("image").getChunk(7500000)
rec.close
set rec=nothing
set connGraph=nothing
wjg023 2003-10-20
  • 打赏
  • 举报
回复
对呀,ADO中提供的很全了
rainstormmaster 2003-10-18
  • 打赏
  • 举报
回复
用ado提供的stream对象

1,066

社区成员

发帖
与我相关
我的任务
社区描述
VB 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧