pictures to show up (1 Viewer)

twindude

New member
Local time
Yesterday, 22:54
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: 267

Kodo

"The Shoe"
Local time
Yesterday, 22:54
Joined
Jan 20, 2004
Messages
707
The files need to be relative to the site.. not physical paths.

something like /images/ImageName.jpg
 

twindude

New member
Local time
Yesterday, 22:54
Joined
Apr 5, 2007
Messages
8
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...
 

twindude

New member
Local time
Yesterday, 22:54
Joined
Apr 5, 2007
Messages
8
sorry here is the attachment

db file
web page with path not picture
image dir
 

Attachments

  • 1.gif
    1.gif
    64 KB · Views: 287

Kodo

"The Shoe"
Local time
Yesterday, 22:54
Joined
Jan 20, 2004
Messages
707
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)
 

twindude

New member
Local time
Yesterday, 22:54
Joined
Apr 5, 2007
Messages
8
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: 280
  • 2.gif
    2.gif
    45.1 KB · Views: 263

Kodo

"The Shoe"
Local time
Yesterday, 22:54
Joined
Jan 20, 2004
Messages
707
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.
 

twindude

New member
Local time
Yesterday, 22:54
Joined
Apr 5, 2007
Messages
8
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???
 

twindude

New member
Local time
Yesterday, 22:54
Joined
Apr 5, 2007
Messages
8
sorry pict attached

sorry pict attached
 

Attachments

  • 5.gif
    5.gif
    60.7 KB · Views: 265

Kodo

"The Shoe"
Local time
Yesterday, 22:54
Joined
Jan 20, 2004
Messages
707
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?
 

twindude

New member
Local time
Yesterday, 22:54
Joined
Apr 5, 2007
Messages
8
Thanks KODO...........

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

thanks so much...:)
 

Users who are viewing this thread

Top Bottom