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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image from database name

Status
Not open for further replies.

peekay

Programmer
Oct 11, 1999
324
ZA
I am inserting an image into an .asp weppage. When the web page loads it looks for newly listed properties to show an image of a few of them. I got the connection right and the data shows but not the image. I have used a path like c:\properties\name.gif in the database. I have checked the picture properties and it seemed right.
Can somebody please help
Thanks


PK Odendaal
and pk@odendaal.com
 
I think the problem stems from how you are storing the address in the database. When the user goes to your page, the html code is going to be written so that the image will be looked for on the users' C:\ drive, not on the server's. I have a database that does the same thing you are doing. Here's what I did:

1. Created a folder within to store the images.
2. In the databse, I referenced the images with a relative url (i.e., ../../images/image1.jpg)
3. That works fine for me.

=========================
rollout
=========================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top