关于图片显示问题!
pan5 2003-12-07 08:36:21 我数据库的photo表的字段photo_news设计image数据类型.
但是读出图片出来.
以下是我的asp代码
-----------2.asp
<!--#include file="objconnection.asp"-->
<% Response.Expires=0
Response.Buffer=true
Response.Clear
%>
<%
dim rs2,str2
set rs2=server.CreateObject("adodb.recordset")
str2="select * From photo_fun Where id_news='"&cstr(4)&"'"
rs2.Open str2,objconnection,1,1
if not rs2.EOF then
Response.ContentType ="image/*"
Response.BinaryWrite rs2("photo_news").GetChunk(7500000)
else
Response.Redirect "manage.asp"
rs2.Close
end if
%>
------- showok.asp
<img src="2.asp" width="80" height="100" border="0">
可是显示不了图片