如何把图片也存到数据库中去?
showimage.aspChange the HTTP headerResponse.ContentType = "image/gif"Set cn = Server.CreateObject("ADODB.Connection")cn.Open "driver={SQL Server};server=.;UID=sa;PWD=;DATABASE=pubs"Set rs = cn.Execute("select logo from pub_info WHERE pub_id='0736'")Respons...
showimage.asp
Change the HTTP header
Response.ContentType = "image/gif"
Set cn = Server.CreateObject("ADODB.Connection")
cn.Open "driver={SQL Server};server=.;UID=sa;PWD=;DATABASE=pubs"
Set rs = cn.Execute("select logo from pub_info WHERE pub_id='0736'")
Response.BinaryWrite rs("logo")
Response.End
showimage.htm
<html>
<head><title>闪亮日子之人事档案管理系统图片显示/title></head>
<body>
<ing src=" showimage.asp ">
</body></html>
[1]
很赞哦!()
- 上一篇
asp中在JScript中使用RecordSet对象的GetRows
asp中在JScript中使用RecordSet对象的GetRows
- 下一篇
浅析Java、C/C++、JavaScript、PHP、Python分别用来开发什么?
showimage.aspChange the HTTP headerResponse.ContentType = "image/gif"Set cn = Server.CreateObject("ADODB.Connection")cn.Open "driver={SQL Server};server=.;UID=sa;PWD=;DATABASE=pubs"Set rs = cn.Execute("select logo from pub_info WHERE pub_id='0736'")Respons...
大图广告(830*140)