从Access数据库恢复BMP图像并显示在WEB页面(microsoft)
时间:2007-12-23 来源:不详 作者:迈克DB
WHERE EmployeeID = 1"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = DataConn
RS.Open cmdTemp, , 0, 1
Response.ContentType = "image/bmp"
Set Bitmap = Server.CreateObject("MyProject.MyClass")
Response.BinaryWrite Bitmap.DisplayBitmap(RS("Photo"))
RS.Close
%>
Create an HTML page named "BitmapTest.htm" that contains the following code:
<HTML>
<HEAD>
<TITLE>Bitmap Test</TITLE>
</HEAD>
<BODY>
<HR>
<img src="Bitmap.">
<HR>
</BODY>
</HTML> 恢复
上一篇:在VB中用代码打印ACCESS报表 下一篇:Access数据库操作中出现的怪现象
文章评论
共有位Admini5网友发表了评论 查看完整内容