---------- Original Message ----------------------------------
From: Rob Kennedy <[EMAIL PROTECTED]>
Reply-To: Borland's Delphi  Discussion List <[email protected]>
Date:  Thu, 05 May 2005 11:08:13 -0500

>Chris Moore wrote:
>> I am developing a web app that presents images to a viewer depending on 
>> choices made from a web browser.
>> 
>> If the image exists (fileexists function) show it, other wise show a 
>> default image.
>> fileexists  ALLWAYS returns false.  I can view all the images if I do 
>> not error check.  Any Ideas?
>
>It strikes me that you might be trying to use FileExists to check for 
>the existence of files that aren't on the same computer as the one your 
>program is running on. FileExists only works with file names, not URLs. 
>It should work with network paths (e.g., \\server\share\dir\file), but 
>not file-path URLs (e.g., file://server/drive|/dir/file).
>
>-- 
>Rob
>
No, I am checking that the FILENAME exists '\\fileserver\filepath\filename' if 
it does, then I pass the URL to the webpage.
In any case, passing the file path to the webpage causes the image to be 
displayed just as if I had passed a URL.

All very confusticating.
>_______________________________________________
>Delphi mailing list -> [email protected]
>http://www.elists.org/mailman/listinfo/delphi
>
 




________________________________________________________________
Sent via the WebMail system at mailhost.biuk.co.uk


 
                   


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to