Solved

Can Image file come from external computer in img tag?

Posted on 2014-11-17
7
240 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

732 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