home *** CD-ROM | disk | FTP | other *** search
- <%
- 'Create ADODB Object, Connect to Database and execute query
- Set conn = Server.CreateObject("ADODB.Connection")
- Conn.Open "DSN=EmployeeDB"
- SQL = "SELECT Employee.Picture FROM Employee "
- SQL = SQL & "Where Employee.ID=" & Request.QueryString("ID")
- Set RSPicture = Conn.Execute(SQL)
- Response.ContentType="image/JPEG"
- Response.BinaryWrite RSPicture("Picture")
- %>