Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying images from a SQL db using ASP...

Status
Not open for further replies.

ruupy

Programmer
Jan 12, 2001
29
NL

What if...

u have a SQL db containing the names & directories of localy (on the server) stored images...

What if...

u would like to display some of the images on a website using ASPobjects 'connection' and 'recordset'

With normal data, i use a loop to cycle through the recordset,...i'm a bit at a loss when i want to show the images. Do u jsut use the directory-info on the images to satisfy the 'src'-part of an 'image'-tag????

ThenX in advance
Ruupy
 
Hello Ruupy,

That's right.

Assuming there is a column named my_pictures that has the virtual path and filename for the images, all you need is

Code:
<img src=<%= rsMyData(&quot;my_pictures&quot;) %> >

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top