To manage the images saved on a database..
We need a BLOB (Binary Large OBject) field on the table.
<%
' Connection to the database
Set rs = conn.Execute("SELECT [myImage] FROM [myTable] WHERE ID=33")
Response.ContentType = "image/jpeg"
Response.BinaryWrite (rs("img"))
rs.Close
set rs = Nothing
%>