• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 636
  • Last Modified:

How to display image that has UNC path?

Hi, I am trying to display image where its src parameter is UNC path like the following:
<img id="imgViewer" src="\\user-89dc945c9a\3\Download.gif" border="0" alt="Download.gif" >

But the image does not appear.

if src parameter does not accept UNC paths is there a script that allow me to display this image?
Please help
0
Abdu_Allah
Asked:
Abdu_Allah
2 Solutions
 
b0lsc0ttCommented:
This question is a duplicate of http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_21830397.html.  You can have one question deleted, lower the points on both questions to keep below the 500 point max, or turn one question into a pointer (20 points) to the other question (500 point).  You can post to Community Support for help doing this.
0
 
ZvonkoSystems architectCommented:
Check this:

<img id="imgViewer" src="file:////user-89dc945c9a/3/Download.gif" border="0" alt="Download.gif" >

0
 
Abdu_AllahAuthor Commented:
Zvonko , Do you mean: "file:\\\\user-89dc945c9a\3\Download.gif" and not "file:////user-89dc945c9a/3/Download.gif"

however both case does not work.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Abdu_AllahAuthor Commented:
Actually if I open the html page that contains that tag from the LAN(inside firewall) it works fine but it does not work if I open the page from browser behind firewall...any suggestions?
0
 
MechanTOurSCommented:
I don't know if there's a direct solution.

"file:////user-89dc945c9a/3/Download.gif" is the right way.
but u may not be able to view it from an hosted page:
i think it is a security restriction

Do u want the page to display an image from local network ?

couldn't u install a little webserver on user-89dc945c9a ?
http://lighttpd.net/

Is ur code dynamically generated ?
why can't u put ur pictures with ur webpage ?
0
 
Abdu_AllahAuthor Commented:
>Is ur code dynamically generated ?

Yes.

I think the best way is to copy files programatecally to the web page and delete them after finish.
0
 
Abdu_AllahAuthor Commented:
MechanTOurS

>i think it is a security restriction

How can I remove the resrection? Is it possible?
0
 
MechanTOurSCommented:
i don't think so.
it is the purpose of such restriction.
u need a little webserver on ur machine.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now