Solved

Can Image file come from external computer in img tag?

Posted on 2014-11-17
7
167 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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 167 total points
Comment Utility
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
Comment Utility
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 32

Assisted Solution

by:Big Monty
Big Monty earned 166 total points
Comment Utility
you could also set up a virtual directory in your site that points to the server
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:sglee
Comment Utility
@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
Comment Utility
From a command prompt run

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

Assisted Solution

by:Big Monty
Big Monty earned 166 total points
Comment Utility
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
Comment Utility
"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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now