首页 > 学院 > 编程设计 > 正文

如何把图片也存到数据库中去?

2020-06-19 13:49:37
字体:
来源:转载
供稿:网友

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]

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表