非法集资30万罪:asp的contenttype问题

来源:百度文库 编辑:高考问答 时间:2024/04/29 11:53:50
在access数据库里保存了图片(OLE),想要在一张asp的网业里输出,其中还要输出一些文字,下面是部分代码:
<td colspan="2" rowspan="13" align="left" valign="top"><p>个人形象照片<br>
<% if lenb(rs("Photo"))>64 then
Response.ContentType="image/*"
Response.BinaryWrite rs("Photo").getChunk(8000000)
response.ContentType="text/*"
else
Response.Write("<img src=images/beijing.gif>")
end if
%>
</p>
</td>
</tr>
<tr>
<td height="20"> </td>
<td height="20" nowrap>姓 名:</td>
<td height="20"><%=(rs.Fields.Item("Name").Value)%></td>
结果老是在 <td height="20"><%=(rs.Fields.Item("Name").Value)%></td>此行报错,而且是灾难性错误,请大家帮忙啊,先谢谢了。