If you want to pull images from the database and display them on the site you have two options.
the first is to pull the image write it to a temp file and then display the temp file. I don't recommend this it has a lot of logistical problems.
The other is to write a little script that will use headers and such to actually send the image file down to the browser. I don't have the links with me but if you look around on the web you'll find some tutorials on this method. It's only about 20 lines of code.