图片上传问题

snower01 2004-02-02 07:08:39
我按照网上的代码写图片上传文件,为什么showimg.asp不能运行。
谢谢!
...全文
33 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
snower01 2004-02-02
  • 打赏
  • 举报
回复
up
snower01 2004-02-02
  • 打赏
  • 举报
回复
up
51windows 2004-02-02
  • 打赏
  • 举报
回复
演示:
http://www.51windows.net/myfile/asp/imgdata/imgdata_index.asp


代码:
http://www.51windows.net/myfile/asp/imgdata/imgdata.rar
snower01 2004-02-02
  • 打赏
  • 举报
回复
showimg.asp代码如下:
<%
set connGraph=server.CreateObject("ADODB.connection")
connGraph.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("images.mdb")
connGraph.Open

set rec=server.createobject("ADODB.recordset")
strsql="select img from [image] where id=4" ' & trim(request("id"))测试用
rec.open strsql,connGraph,1,1

Response.ContentType = "image/*"
Response.BinaryWrite rec("img").getChunk(7500000)

rec.close
set rec=nothing
set connGraph=nothing
%>

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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