Solved

Can Image file come from external computer in img tag?

Posted on 2014-11-17
7
239 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Suggested Solutions

Title # Comments Views Activity
How to refresh a page from a sub domain in ajax ? 34 26
AJAX Wordpress Not Reading Variable 2 32
Responsive Font Size 6 31
Validating Date 4 14
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

820 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