Hey all I need some help with displaying some images that are in a database. Currently when I try to display them they come out in binary form and I am stumped on how to correct it.

Server info:

WWW Server:
Windows Server 2003
ASP .Net
Pages are .aspx written in VBScript

Database Info:
MS SQL Server 2000

Problem code:

<%
Dim rs
rs = Server.CreateObject("adodb.recordset")
rs.Open("Select * From avatar", Application("Conn"))
If not rs.eof then
Do Until rs.eof
Response.ContentType = "image/gif"
Response.binarywrite(rs.fields("a_avatar").value)
rs.movenext
Loop
rs.close
End If
%>

As stated above the result is display of the three images in the database in binary form.
http://test.adiktclan.com/test.aspx

Any help is greatly appreciated.

Thanks,

John K
MCSA, A+