to AIHUA, 以下用法可以吗?我在 Browser上看到地是乱码?能告诉我那里写错了吗?
我刚学asp不好意思!(太XXXX了,对吗)
<!--#include FILE="config.asp"-->
<!-- #include file ="adovbs.asp" -->
<%dim StrSql,rs,tu_size,str %>
<table border="1" align="left" width="100%" cellspacing="1" cellpadding="5"
class="table1">
<tr class="colheader1" >
<td width="14%"><font color=red>出版社名称</font></td>
<td width="20%"><font color=Green ><b>出版社信息</b></font></td>
<td width="26%"><font color=Green ><b>图片</b></font></td>
</tr>
<%
StrSql = "select *from pub_info"'U_News
set rs = DBConn.Execute(StrSql)
Do until rs.EOF
%>
<tr>
<td>
<font color = clblack>
<%=rs("pub_id")%>
</font>
</td>
<td>出版社名称 ^_^</td>
<td>
<font color = green>
<%
tu_size=rs("logo").ActualSize '图大小
Response.ContentType = "image/JPEG" '图mime类型
%>
<img src= <%Response.BinaryWrite rs("logo").getChunk(tu_size)%> >
</font>
</td>
</TR>
<%rs.MoveNext%>
<%Loop%>
</table>