If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > image search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-03, 18:40
cmwood cmwood is offline
Registered User
 
Join Date: Jan 2003
Location: Boise
Posts: 4
image search

I have a frontpage database in my website that I need to pull an image from a file of about 75 images. I have about 250 database objects. How can I get my database link to pull an image of an object without having to create 75 or more individual links to the images. Example: The user would search for a Nissan Frontier. The database shows approximately 25 frontiers, each with an individual stock number, and 15 of them have a picture, in a file with the same stock number, available. How do I create a link that would SEARCH the image file and find the image with the matching stock number and display it? I currently have to create an individual link within a column for each individual stock number with a matching image stock number.

I know this can be done, but, how?
Reply With Quote
  #2 (permalink)  
Old 02-04-03, 12:41
ZeligOn ZeligOn is offline
Registered User
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 18
Arrow

hopes this is what your looking for

Dim ImgFile
Set ImgFile = CreateObject("Scripting.FileSystemObject")
If ImgFile.FileExists("Path*") Then
'your code for the image . . .
End If


The "path" stand for file location on your system
(didn't try it on the web) + the file full name,
exmpl : "c:\images\Image.gif"
__________________
Eddie.
Reply With Quote
  #3 (permalink)  
Old 02-04-03, 14:01
cmwood cmwood is offline
Registered User
 
Join Date: Jan 2003
Location: Boise
Posts: 4
Thankyou, will give it a try and let you know. It may be a couple of days before I can get to it though. Thanks again, Chris
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On