Hi All:
I have a small application that stores images either in the database or as
files (depending on the user preference). I'm in the process of providing a
web interface to this application.
1. If the images are stored in the DB then, every an image is requested, it
will need to be pulled out and a temp file created and then displayed? What
is the best way to do this?
2. If the images are stored as files, how do I ensure security? For example
if I store all the images in a folder called \database\image s and that has a
file 3.tif or 3.jpg, how do I ensure that people dont point their browsers
to http://mysite/database/images/3.jpg ?
Any pointers would be very helpful :)
TIA
Vinay
vinay_hs@nospam .yahoo.com.nospam
I have a small application that stores images either in the database or as
files (depending on the user preference). I'm in the process of providing a
web interface to this application.
1. If the images are stored in the DB then, every an image is requested, it
will need to be pulled out and a temp file created and then displayed? What
is the best way to do this?
2. If the images are stored as files, how do I ensure security? For example
if I store all the images in a folder called \database\image s and that has a
file 3.tif or 3.jpg, how do I ensure that people dont point their browsers
to http://mysite/database/images/3.jpg ?
Any pointers would be very helpful :)
TIA
Vinay
vinay_hs@nospam .yahoo.com.nospam
Comment