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

showimage.aspxml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /??

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]

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
青葱年少的头像青葱年少普通用户
上一篇 2023年12月29日
下一篇 2023年12月29日

相关推荐