G
Guest
Hi,
I have a website sitting on a server (ServerA) with images to be
displayed sitting on a separate server (ServerB) on the same network.
I am trying to test for the existance of an image using:
File.Exists(Server.Path("/images/" + "myImage.jpg")
where the folder "images" is the virtual folder where the images are
stored.
Server.Path ("/images/" + "myImage.jpg") returns, as expected, the path on
ServerB in the form: "\\ServerB\...\Images\myImage.jpg"
However, although the image does exist and displays on the webpage, the
File.Exists returns False.
Am I doing something fundamentally wrong here?
Many thanks for any help.
Pete
I have a website sitting on a server (ServerA) with images to be
displayed sitting on a separate server (ServerB) on the same network.
I am trying to test for the existance of an image using:
File.Exists(Server.Path("/images/" + "myImage.jpg")
where the folder "images" is the virtual folder where the images are
stored.
Server.Path ("/images/" + "myImage.jpg") returns, as expected, the path on
ServerB in the form: "\\ServerB\...\Images\myImage.jpg"
However, although the image does exist and displays on the webpage, the
File.Exists returns False.
Am I doing something fundamentally wrong here?
Many thanks for any help.
Pete