28,390
社区成员
发帖
与我相关
我的任务
分享
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="image/*; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
set conn=server.CreateObject("adodb.connection")
conn.connectionstring="driver={sql server};server=KIMI;uid=sa;pwd=sa;database=steel_wsf;"
conn.open
set rs = server.CreateObject("adodb.recordset")
sql = "select * from pokou"
rs.open sql,conn,1,1
do until rs.eof
response.Write(rs("id"))
%>
<img src="load.asp?id=<%=rs("id")%>"/>
<%
rs.movenext
loop
rs.close
conn.close
set rs = nothing
set conn = nothing
%>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
response.Expires=0
response.Buffer=true
response.Clear()
set conn=server.CreateObject("adodb.connection")
conn.connectionstring="driver={sql server};server=KIMI;uid=sa;pwd=sa;database=steel_wsf;"
conn.open
Response.ContentType="image/*"
set rs1 = server.CreateObject("adodb.recordset")
sql="select * from pokou where id="&request.QueryString("id")
rs1.open sql,conn,1,1
response.BinaryWrite rs1("pkt1").getchunk(7500000)
rs1.close
conn.close
set rs1=nothing
set conn=nothing
%>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Dim conn, rs1, id
id = Request.QueryString("id")
If Not IsNumeric(id) Then Response.End
response.Expires=0
response.Buffer=true
set conn = server.CreateObject("adodb.connection")
conn.connectionstring="driver={sql server};server=KIMI;uid=sa;pwd=sa;database=steel_wsf;"
conn.open
Response.ContentType="image/*"
set rs1 = server.CreateObject("adodb.recordset")
sql="select pkt1 from pokou where id=" & id
rs1.open sql,conn,1,1
response.BinaryWrite rs1("pkt1").getchunk(7500000)
rs1.close
conn.close
set rs1=nothing
set conn=nothing
%>