Web Design Forums

Other Languages

Get help with any programming languages other than the ones above.

image from access database



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old February 22 '09, 12:05 PM (#1)
lane87 is offline
New Member!
 
lane87's Avatar
 
Join Date: February 2009
Posts: 3
lane87 is an unknown quantity at this point
image from access database

hi all,

ive searched every to find an answer but cant seem to get the one that i need.

I have a products table with productID, description and picture, i can retrieve the description fine using asp however the image will not show at all.

i have the location of the image stored in the text field in the database i.e /images/tshirt.jpg but it just displays a red cross where it is supposed to be.

If anyone could help i would appreciate it

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 22 '09, 01:17 PM (#2)
Shadowfiend is offline
Code beautifully and honorably
 
Shadowfiend's Avatar
 
Join Date: June 2005
Location: Atlanta, GA
Posts: 4,143
Shadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond repute
Does the image actually exist at that location? If you only have a filename, you need to make sure the actual file is there so that the browser can find it. If it isn't, then the location isn't particularly useful. Double-check to see that the image is where the database says it is.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 22 '09, 01:38 PM (#3)
lane87 is offline
New Member!
 
lane87's Avatar
 
Join Date: February 2009
Posts: 3
lane87 is an unknown quantity at this point
hi,

yeh the images are in a image folder ive checked the names of the images and there the same aswell it just doesnt seem to be able output anything really dont know why.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 22 '09, 02:00 PM (#4)
Shadowfiend is offline
Code beautifully and honorably
 
Shadowfiend's Avatar
 
Join Date: June 2005
Location: Atlanta, GA
Posts: 4,143
Shadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond repute
Is there a link we can look at? You need to look at the URIs that are being put into the img tag on the page and then check whether putting that exact URI into your location bar works. If not, then you're probably missing a directory or something in there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 22 '09, 02:11 PM (#5)
lane87 is offline
New Member!
 
lane87's Avatar
 
Join Date: February 2009
Posts: 3
lane87 is an unknown quantity at this point
ive got it working now i used this code

<td><img src=<%= oRes.Fields("Picture").value %>

and just missed of the </td> and its produced the images

thanks for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 22 '09, 06:04 PM (#6)
drewbeta is offline
WDF Member
 
drewbeta's Avatar
 
Join Date: August 2008
Location: Chicago IL, USA
Posts: 77
drewbeta will become famous soon enough
Send a message via AIM to drewbeta
there is still an html syntax error that I see in that. there are no quotes around the src path. this will often cause unpredictable results.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 22 '09, 07:14 PM (#7)
Shadowfiend is offline
Code beautifully and honorably
 
Shadowfiend's Avatar
 
Join Date: June 2005
Location: Atlanta, GA
Posts: 4,143
Shadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond repute
drewbeta is right regarding the quotes around the <%= %> section. Other than that, glad to see you figured it out!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » Other Languages

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
image database - retreiving images varela286 PHP 6 May 6 '08 10:19 PM
using Access database files with php pyrodragon PHP 2 September 29 '07 08:26 AM
Converting an Access Database to a mySQL Database JR Database Systems Help 2 July 8 '05 10:07 AM
Using an Access database securely Brak Other Languages 4 June 29 '04 11:36 PM

 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 01:49 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164