网络编程 
首页 > 网络编程 > 浏览文章

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

(编辑:jimmy 日期: 2024/10/7 浏览:3 次 )

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="/UploadFiles/2021-04-02/ showimage.asp ">

</body></html>

 

[1]

上一篇:如何获知页面上的图象的实际尺寸?
下一篇:图像图表