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

编程学习 2021-07-05 11:26www.dzhlxh.cn编程入门

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]

Copyright © 2016-2025 www.dzhlxh.cn 金源码 版权所有 Power by

网站模板下载|网络推广|微博营销|seo优化|视频营销|网络营销|微信营销|网站建设|织梦模板|小程序模板