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]