Solved

Can Image file come from external computer in img tag?

Posted on 2014-11-17
7
238 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
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

832 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