I need to set the image source to a network location.
The image is located in machineName \ mappedPath \ abc.jpg.
It does not load in any browser, although all I need for it to work is IE v9 and higher. When I check the location in the source, it is set to
<img src="\\machineName\mappedPath\abc.jpg">
When I right-click on the image placeholder in IE and look at the properties that I see, the address matters
file:
Using File Explorer with any of these paths opens the image in order.
I tried to add an IP. Cannot add domain name as non-domain.
Other ways I tried to set the source directly below. I read a few places that require 5 forward slashes, but that didn't make any difference.
<img src="file://\\machineName\mappedPath\abc.jpg">
<img src="file:////\\machineName\mappedPath\abc.jpg">
<img src="file://///\\machineName\mappedPath\abc.jpg">
<img src="file:////machineName/mappedPath/abc.jpg">
<img src="file://///machineName/mappedPath/abc.jpg">
<img src="\\machineName\mappedPath\abc.jpg">
,
https://blogs.msdn.microsoft.com/windows_azure_connect_team_blog/2011/01/20/windows-azure-connect-use-case-enable-file-sharing-on-windows-azure-vm/
, ?
, , https://jonlabelle.com/snippets/view/html/create-html-link-to-unc-path, ( IE)