My server url is something like and my images folder in server is F:\images\1234.jpg but I published the website in C:\inetpub\wwwroot\

How can I refer to images from F:?

2 Answers

Ali Abdollahi On Best Solutions

consider using virtual directory

   <application path="/files">
      <virtualDirectory path="/Images" physicalPath="F:\images" />

then in browser accessing images from

Promis Patel On

Mode - 1

Read the image file in browser.

Implement this way in your code file.


Mode - 2

After publish the code in this URL then after follow the below step.

  • Run URL in browser.
  • Right click image and open in new tab then copy the URL. ex. //
  • Paste the URL in the code you need.