Click to See Complete Forum and Search --> : Image File up load - store the path in db & display on the web page when required


shanuragu
08-05-2003, 02:59 AM
Hi

Please tell me how can I upload an image file & store the path & image in db so that I can display on the web page when ever required????

shara

rdoekes
08-05-2003, 07:14 AM
there are a whole bunch of upload asp-components on the market, some for free, some for a fee. With all these components you can upload files from a browser to a webserver.
There you can either save the image to the filesystem and the link to this new image in a database, or save the image to the database as web as a blob.

When retrieving these images, it is easier to have the link stored in the database and the image itself on the filesystem:
'create recordset
Response.write "<img src=""" & oRs.Fields("image").value & """>"
'close recordset

-Rogier