NEWSZW_HZH_BEGIN-->
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]
NEWSZW_HZH_END-->查看更多关于如何把图片也存到数据库中去?_编程10000问_的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did27341