<% uid = Request("uid") 'the following crap clears out the existing http header information response.expires = 0 response.buffer = true response.clear 'this tells the browser that the binary it will receive is an image being passed response.contenttype="image\jpeg" Set conn=server.createobject("ADODB.connection") conn.open "driver=SQL server;server=netserv;database=dbfgmi;uid=feelgood;password=motors;" set rs=conn.execute("select uid, picture1 from tblpersonnel where uid=" & uid) response.binarywrite rs("picture1") response.end %>