Solved

Can Image file come from external computer in img tag?

Posted on 2014-11-17
7
241 Views
Last Modified: 2014-12-04
To display the contents of the image in img tag, I have been storing image files in the web server where this website is running from.
My question is if I store these image files on another computer on the same network and have img tag access it thru mapped drive or something like that?

Here is current statement:

 <img border="0" height=200 width=200 src="http://www.domain.com/images/pic1.jpg">

To access image files on external computer shared folder, can I do something like this?

 <img border="0" height=200 width=200 src="\\Server1\image/images/pic1.jpg">
0
Comment
Question by:sglee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 167 total points
ID: 40447935
Only in Internet Explorer. You can use the file:// prefix.  Firefox does not allow UNC paths.
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 167 total points
ID: 40447946
You can have a symbolic link pointing to the location of the image folder
How you set it up depends on the server
0
 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 166 total points
ID: 40447994
you could also set up a virtual directory in your site that points to the server
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:sglee
ID: 40448142
@SStory
Whatever I do, it has to be compatible with all browsers such as IE, Firefox and Chrome.
@Gary
Can you give me an example of "You can have a symbolic link pointing to the location of the image folder"?
@BigMontyIIS Website PropertiesAre you referring to changing "resource" in Home Directory of IIS website to either "A Shared Located on another computer" or "A redirection to URL"?
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 167 total points
ID: 40448163
From a command prompt run

mklink /D "linked/to/path" "full/path/to/real/folder"
0
 
LVL 33

Assisted Solution

by:Big Monty
Big Monty earned 166 total points
ID: 40448187
no, that is something different. a virtual folder allows you to map a folder to your website that is out of your website folder structure. have a look at this article for more detailed info:

http://support.microsoft.com/kb/172138
0
 
LVL 25

Assisted Solution

by:SStory
SStory earned 167 total points
ID: 40451455
"To access image files on external computer shared folder, can I do something like this?"
The answer is really no, you cannot do UNC except in IE.  There are virtual folders for websites. If you can create one to a share then that should work.

It don't suppose it is possible to run IIS on that box and farm out your images from a webserver on it and reference them in that way?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question