Display Images on Web Form specifying File Path
Posted on 2009-04-26
I need to display an image that is stored in a folder on the webserver that is NOT part of the root of the website, i.e. D:\projects\project_number\photos\ and webserver is D:\inetpub\wwwroot\website etc.
The Image.ImageURL must have a relative path. The images are related to a project and stored in the project file structure, so I am locating the image to load through project varialbe, i.e. project_number. Once I generate the path to the photo, I cannot display the photo due to the relative path needed for ImageURL.
What are my options to displaying the photo? I want the code to open a new window and display the image.