SQL Server, Access, Oracle?<BR><BR>By the way, if you can help it, don't store the actual image in the database. Store the filename and path. Binary data extractions/queries in most databases is a resource hog with performance penalties.
Just dynamically create the hyperlink from your recordset values. Don't make this any harder than just querying your database for the filenames and paths of the images and dynamically create your links from the recordset and Response.Write the HTML.