pictures to show up

twindude

New member
Local time
, 20:13
Joined
Apr 5, 2007
Messages
8
i have created a access db with a column called picfile

i have in that column........ the path to the pictures
ex. c:\images\"image_name"

i have setup a record set to connect to the db - "works"

I can retreave all data in the db via a web page but the pictures do not show up...........????? i need them to show up on the main page and then in a details page as well.......

is there some trick to this? as long as it text, etc works fine.....

help please....
 

Attachments

  • dbpix.jpg
    dbpix.jpg
    70.3 KB · Views: 287
The files need to be relative to the site.. not physical paths.

something like /images/ImageName.jpg
 
not working still

i tried what you stated and here is a screen shot of everything i have

db and column for pics
image dir
web page showing path and not pic

i'm lost ....... wowo

thanks for all the help...
 
sorry here is the attachment

db file
web page with path not picture
image dir
 

Attachments

  • 1.gif
    1.gif
    64 KB · Views: 308
so far so good.. now you just have to place that location as the src value of an image :)
<img src="/images/pic.jpg" /> like so:)

Or use an ASP.NET image control and bind the ImageUrl property to the location of the image. (this is preferred over using the plain HTML image tag)
 
error now

when i try to upload a pic i get this error.........
attached..

and

no pic... just the place holder like it doesn't see it.....

thinking its something with the DB..

this is OFFICE 2007 ACCESS
 

Attachments

  • 1.gif
    1.gif
    16.5 KB · Views: 297
  • 2.gif
    2.gif
    45.1 KB · Views: 281
you can't do a request.form after your upload a file..
what control are you using to upload the file?

when you generate your table, the src for the images should be the name of the field in the db that holds your location. RS("PicFile") Where RS is your recordset object.
 
still not working..ummmmm

Kodo, thanks for the help......wow

well let me get bak to the basic question......... i was going to try and upload a file and see where it placed it........

so

here is what i ahve

I'm using DreamWeaver....
Record Set works, brings all data in to page

however it doesn't not bring in the image! is has an empty space there

when i hover over where the image should be showing it shows me the correct row variable in the task bar

pic attached not sure what are you referring too in the RS
the RS is showing data but not pic so if i go to the page code and point to a pic it shows but the db image can't be shown? i'm thinking the db is not pointing to the right location???
 
sorry pict attached

sorry pict attached
 

Attachments

  • 5.gif
    5.gif
    60.7 KB · Views: 282
Don't store the folder name along with the path to the image.. just the image name. This way if you change the path, then you don't need to change any records.
so you'll just append the path onto the value for the src..like:

<img src="/images/<%=RS("PicFile") %>" />

make sense?
 
Thanks KODO...........

Man I'm glad you helped me.........:)

thanks so much...:)
 

Users who are viewing this thread

Back
Top Bottom