|
-
Sep 22nd, 2000, 06:01 AM
#1
Thread Starter
New Member
Hi,
I have a common dialog control that I use to get a filename. This filename is used to give the picture control a location of where to find its image. I have this working fine.
However, my problem is that this picture location is stored in a database, and is then acessed by a web server. The web server reads the location (which is normally something like "C:\images\image.gif"). This is no good for me, as this reference points to the client location, rather than the location for the server. I need both locations, eg:
1) For the picture box - "C:\images\image.gif"
2) For the server - "\\server\images\image.gif", or, I have also seen something like -
"\\server\C\Bet\Home\images\Sports\cricket.gif"
I would simply use some string functions to remove the "C:" and replace it with "\\server", but this procedure must work across different servers, and therefore have different names - therefore I cannot hardcode the servername into the string.
Is there any way I can convert the standard file location into a more "web-based" location?
Thanks for any help in advance.
Cheers,
Russ
-
Sep 22nd, 2000, 08:12 AM
#2
Lively Member
Yes, but you must know where the file is. If it is in the same directory or a sub directory of your app, you can use something like App.Path & "\images\images.gif"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|