SunQuest
           Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 31st, 2002, 12:11 PM
m4coll m4coll is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 29 m4coll User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 51 sec
Reputation Power: 0
Question need help with Microsft Access 2000 db

Ok, Im working with an Microsoft Access 2000 database which I uploaded to my hosting server and I got it up and running to display from the database using ASP. Now I'm trying to add pictures to the database to view them online and this is where I'm running into problems. I can add the pictures as an OLE object to the Database browsing my harddrive but when I try to hardcode the online path, it tells me "this is file does not exsist", but the path I'm giving will be the path on my hosted server. Can anyone tell me how to add pictures and view them online?

Reply With Quote
  #2  
Old July 31st, 2002, 04:26 PM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 234 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 46 sec
Reputation Power: 9
don't store the pictures in the database...and don't use ole. just have a field called path (text), and say where the path is on the server. then in your asp when you select a specific record you can just see what the path is and then use it in your ASP...for example:

say that the picture field for record 1 says (in plain text) images/pic.jpg

then your asp could have something like:

<img src="<% Response.Write rs("picture") %>">

Reply With Quote
  #3  
Old July 31st, 2002, 06:06 PM
m4coll m4coll is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 29 m4coll User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 51 sec
Reputation Power: 0
Thanks

Thanks for your help but will this give me a link to the picture or will the picture be display when the page is served? I would like the picture to come up when the page is loaded. Will it?

Reply With Quote
  #4  
Old August 1st, 2002, 09:15 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 234 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 46 sec
Reputation Power: 9
Quote:
would like the picture to come up when the page is loaded. Will it?


yes. think of it like this...if you have your directory structure like this:

public_html <--Root level

public_html/docs <--One level down

public_html/images <--One level down

then if you just had some static html residing in public_html that had some picture on it, then the code would look something like:

<html>
blah blah...
<img src="images/someimg.jpg">
</html>

then when you use your ASP you are doing the same thing (except it is not static) by saying:

Quote:
<img src="<% Response.Write rs("picture") %>">


your picture will display the same as it would with a static page (assuming rs("picture") value equals "images/someimg.jpg".

Reply With Quote
  #5  
Old August 1st, 2002, 10:49 AM
m4coll m4coll is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Posts: 29 m4coll User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 51 sec
Reputation Power: 0
Thumbs up THNKS

Thank you Tron you are a true Zen Master

Reply With Quote
  #6  
Old August 15th, 2002, 12:01 PM
nathanieldaniel nathanieldaniel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 17 nathanieldaniel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
another thing you might want to do is in the database when you are entering the URL of the picture you might want to enter the backslash before the folder name as well......

good: /images/anyimage.bmp
bad: images/anyimage.bmp

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > need help with Microsft Access 2000 db


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway