📄 readseal.asp
字号:
<%@ Language=VBScript %>
<!--#include file="conn.asp"-->
<%
'从数据库中读取在线编辑的文件数据
id = Request.querystring("id")
Dim RS
Set RS = Server.CreateObject("ADODB.Recordset")
RS.Open "seals", conn, adOpenStatic, adLockReadOnly
If id <>"" Then
RS.Find "sid=" & id
If Not RS.EOF THEN
response.ContentType = "application/octet-stream"
'Response.AddHeader "Content-Disposition","attachment; filename=" & RS("sname")
Response.BinaryWrite(RS("Imagefile"))
end if
Else
id = Request.Querystring("sid")
RS.Find "sid=" & id
If Not RS.EOF THEN
response.ContentType = "application/octet-stream"
'Response.AddHeader "Content-Disposition","attachment; filename=" & RS("sname")
Response.BinaryWrite(RS("espfile"))
end if
End If
rs.close
set rs = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -