<!--#include file="conn.asp"-->
<%
response.expires=0
response.buffer=true

if request.querystring("pid")<>"" then
	sql="SELECT upimg FROM bbs1 where Announceid=" & Request.QueryString("pid") 
	set rs=conn.Execute(sql)
	response.clear
	Response.ContentType = "image/*"
	Response.BinaryWrite rs("upimg")
	rs.close:set rs=nothing
	set conn=nothing
else
	sql="SELECT upface FROM [user] where userName='" & Request.QueryString("uname") & "'"
	set rs=conn.Execute(sql)
	response.clear
	Response.ContentType = "image/*"
	Response.BinaryWrite rs("upface")
	rs.close:set rs=nothing
	set conn=nothing
end if
%>