显示图片的问题。

zhuangjunx 2009-12-07 08:34:01
<img src="http://www.ss.cn/img.asp?link=http://b2009.cn/tuofa999/?id=3293584&img=http://hiphotos.baidu.com/dfasdfh/pic/item/6f7f35dce27e4c7b95ee3736.jpg">
这样的显示图片
img.asp文件中的代码应该怎么写呢?
...全文
63 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhuangjunx 2009-12-07
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 aemyang1987 的回复:]
img=http://hiphotos.baidu.com/dfasdfh/pic/item/6f7f35dce27e4c7b95ee3736.jpg楼主想显示这个图片吗? 如果是就用response.write(request("img"))就可了,
[/Quote]


这样不行,试过了。
aemyang1987 2009-12-07
  • 打赏
  • 举报
回复
img=http://hiphotos.baidu.com/dfasdfh/pic/item/6f7f35dce27e4c7b95ee3736.jpg楼主想显示这个图片吗? 如果是就用response.write(request("img"))就可了,
  • 打赏
  • 举报
回复
Set   S=server.CreateObject("Adodb.Stream")     
S.Mode=3
S.Type=1
S.Open
S.LoadFromFile(server.mappath(forder&server.urlencode(filename))
Response.AddHeader "Content-Disposition", "attachment; filename="&filename
Response.CharSet = "GB2312"
Response.ContentType = "image/*"
Response.BinaryWrite(S.Read)
Response.Flush
s.close
set s=nothing

给你个参考的例子
其实就是用Adodb.Stream
zhuangjunx 2009-12-07
  • 打赏
  • 举报
回复
还有谁知道的呀。
zhuangjunx 2009-12-07
  • 打赏
  • 举报
回复
楼上的,你这是什么意思?
好像不是我的意思吧。
liuwei_IT_love 2009-12-07
  • 打赏
  • 举报
回复
<%
str="select * from biao where imgid='"&id&"' order by imgid desc"
set rs=server.createobject("adodb.recordset")
rs.open str,conn,1
do while not rs.eof
%>
<img src="<%=rs("img")%>" width="400" height="300">
<%
rs.movenext
loop
%>

28,391

社区成员

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

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