473,593 Members | 2,925 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting to the img src on another server.

Hi;

I am writing an html page that will live on one server in an ms windows
network, but access pictures from a directory on another ms windows
server in the network.

I know in html the values for img src use unix style path separators
with root ( "/" being your parent web directory.

However in windows land the path to my images would be something like

\\theOtherServe rMapping\wwwRoo t\inetpub\image s

How would I write the path to such an image directory in my html tags?

Would I need to urls instead of file paths?

This is an honest question, please don't slam me. I need the help

Thanks in advance for any information

Jul 24 '05 #1
6 13988
jo************* **@hotmail.com wrote:
Hi;

I am writing an html page that will live on one server in an ms windows
network, but access pictures from a directory on another ms windows
server in the network.

I know in html the values for img src use unix style path separators
with root ( "/" being your parent web directory.

However in windows land the path to my images would be something like

\\theOtherServe rMapping\wwwRoo t\inetpub\image s

How would I write the path to such an image directory in my html tags?

Would I need to urls instead of file paths?


Yes.
http://whereever.com/...
If everything you're referencing lives somewhere else, you can put in as
<base href="..."> to say that _all_ your links are relative to that base
ref, rather than relative to where your page is - can help keep your
links short and sweet.
I've seen problems, though, with Novell BorderManager not linking
correctly ...
I'd guess you could use the file:// protocol internally in a similar
way, if this isn't strictly www.

Chris
Jul 24 '05 #2
jo************* **@hotmail.com wrote:
Hi;

I am writing an html page that will live on one server in an ms windows
network, but access pictures from a directory on another ms windows
server in the network.

I know in html the values for img src use unix style path separators
with root ( "/" being your parent web directory.

However in windows land the path to my images would be something like

\\theOtherServe rMapping\wwwRoo t\inetpub\image s

How would I write the path to such an image directory in my html tags?

Would I need to urls instead of file paths?

This is an honest question, please don't slam me. I need the help

Thanks in advance for any information

If the server with the images has a webserver installed *and* is accessible
to all users that can access your primary server, than use absolute URLs to
reference the images.
http://hostnameofimageserver.company/images/foobar.jpeg

If the 'image server' is not directly accessible from the machines where the
browser is running (e.g. behind a firewall) or has not webserver, but your
primary server can access is, you can create a 'virtual
directory' (assuming you are using IIS). Configure it to map the network
path \\theOtherServe rMapping\wwwRoo t\inetpub\image s to the local
directory /images (IIS has a wizard for this IIRC). In this case
use /images/foobar.jpeg as src attribute of your images.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Jul 24 '05 #3
jo************* **@hotmail.com wrote:

Hi;

I am writing an html page that will live on one server in an ms windows
network, but access pictures from a directory on another ms windows
server in the network.

I know in html the values for img src use unix style path separators
with root ( "/" being your parent web directory.

However in windows land the path to my images would be something like

\\theOtherServe rMapping\wwwRoo t\inetpub\image s

How would I write the path to such an image directory in my html tags?

Would I need to urls instead of file paths?

This is an honest question, please don't slam me. I need the help

Thanks in advance for any information


If the entire Web site is for an intranet (internal to your
company) and not the Internet, URLs to files (pages, images, etc)
can be of the form
file://///server-name/directory/subdirectory/file-name
where

"file" is literally that, indicating a file server and not a Web
server.

Use forward slashes (virgules), not back-slashes. This allows you
to set this up where the file server, internal Web server, or
user's platform are not necessarily PCs running Windows. The
convention is to use only two virgules. However, Windows requires
five virgules in lieu of two back-slashes to indicate an external
file-server (external to the host of the Web server, within your
intranet). You may have to experiment with both two or five; try
five first.

"server-name" is the name of the file-server. If there are any
embedded blanks in the name, encode them as %20.

"directory" is the name of the folder (Windows) or directory (Unix)
where the file is located. Similarly, "subdirecto ry" is the name
of the folder below "directory" . "Subdirecto ry" is omitted if the
file is directly in "directory" ; on the other hand, there may be
several levels of "subdirecto ry". Avoid using names that contain
blanks; if that's not possible, encode them as %20 as with
"server-name".

"file-name" is the name of the file. Since you are using a
file-server that merely sends the file and not a Web server that
might provide the file-type in a header, it is necessary that
"file-name" includes an extension (e.g., .jpg, .gif).

Depending on how your intranet and file-servers are configured,
this may work only within a LAN (local-area network) or may work
within a WAN (wide-area network).

NOTE WELL: None of this works for Web pages that will be seen by
anyone who does not have direct access to the file-server. Indeed,
it is necessary that the user already be connected to the
file-server before attempting to look at the Web page. Your Web
server will provide neither access nor the connection. However, it
is possible to create a Web page that contains scripts to establish
the connection to the file-server for users who have existing
access priveleges; such a Web page must be viewed by a user before
attempting to view a page that requires the connection.

On my own PC
file:///C:/WINDOWS/desktop/flame.gif
gives me the flame graphic image from my own desktop. On my wife's
PC, however, she would use
file://///DAVID%20PC/WINDOWS/desktop/flame.gif
because, in our household LAN, my PC is named DAVID PC.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #4
JRS: In article <42************ ***@nowhere.not >, dated Mon, 27 Jun 2005
17:56:01, seen in news:comp.infos ystems.www.authoring.html, David Ross
<no****@nowhere .not> posted :

Use forward slashes (virgules), not back-slashes.


In French, "virgule" is used for the decimal point or comma; and for
part of a semi-colon. In a good English[*] dictionary, it is given as
meaning an old form of comma, a slanting line. Only in a large Webster
do I see it as corresponding unambiguously to a slash or solidus, as
used in writing Lsd (UK currency before 1971).

So I observe that the use of "virgule" as a synonym for slash in an
international newsgroup is not helpful.
[*] Well, with a nod to Alan, although it was manufactured in Greater
East Anglia, its publishers are in Edinburgh, thus not English.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 24 '05 #5
Dr John Stockton wrote:

JRS: In article <42************ ***@nowhere.not >, dated Mon, 27 Jun 2005
17:56:01, seen in news:comp.infos ystems.www.authoring.html, David Ross
<no****@nowhere .not> posted :

Use forward slashes (virgules), not back-slashes.


In French, "virgule" is used for the decimal point or comma; and for
part of a semi-colon. In a good English[*] dictionary, it is given as
meaning an old form of comma, a slanting line. Only in a large Webster
do I see it as corresponding unambiguously to a slash or solidus, as
used in writing Lsd (UK currency before 1971).

So I observe that the use of "virgule" as a synonym for slash in an
international newsgroup is not helpful.

[*] Well, with a nod to Alan, although it was manufactured in Greater
East Anglia, its publishers are in Edinburgh, thus not English.


My Funk & Wagnalls "Standard College Dictionary" (1963) says for
"slash":
7. (printing) A virgule.

It says for "solidus":
1. A gold coin of the Byzantine Empire, first issued under
Constantine and remaining the standard unit of currency during the
Middle Ages, when it was called a bezant.
2. A medieval money of account, equal to 12 denarii.
3. The sign (/) used to divide shillings from pence: 10/6 (10s.
6d.), being originally the long f written for shilling; sometimes
also used instead of a horizontal line to express fractions: 3/4.

Finally, this dictionary says for "virgule":
A slanting line (/) used to indicate two alternatives, as in
and/or, to set off phoneme symbols, etc; also called slash. [<L
virgula, dim. of 'virga' rod]

Before this dictionary was published (back in the time of Noah and
the flood), I had a teacher in high school who strongly warned
against using "and/or". "Or" includes "and", not only in
mathematics but also in the English language. She also advised
that this the symbol was not a "slash" but was properly called a
"virgule".

When I spell-checked this message, "solidus" was not recognized but
"virgule" was. It appears that "solidus" is a Briticism for a
symbol specifically related to money.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #6
JRS: In article <42************ ***@nowhere.not >, dated Thu, 30 Jun 2005
12:20:41, seen in news:comp.infos ystems.www.authoring.html, David Ross
<no****@nowhere .not> posted :
Dr John Stockton wrote:

JRS: In article <42************ ***@nowhere.not >, dated Mon, 27 Jun 2005
17:56:01, seen in news:comp.infos ystems.www.authoring.html, David Ross
<no****@nowhere .not> posted :
>
>Use forward slashes (virgules), not back-slashes.
In French, "virgule" is used for the decimal point or comma; and for
part of a semi-colon. In a good English[*] dictionary, it is given as
meaning an old form of comma, a slanting line. Only in a large Webster
do I see it as corresponding unambiguously to a slash or solidus, as
used in writing Lsd (UK currency before 1971).

So I observe that the use of "virgule" as a synonym for slash in an
international newsgroup is not helpful.

My Funk & Wagnalls "Standard College Dictionary" (1963) says for
"slash": ... ...


Yes, but that's an American dictionary too, IIRC.

The point is that you must not assume that your local usages, however
well documented locally, are appropriate for an explanation in an
international newsgroup. Use them locally, if you feel it appropriate;
but not internationally . Remember that the majority of those who
communicate in English are non-Americans.

Since the character set in international News is presumed to include the
characters common to the UK & US PC keyboards, you could have
illustrated your meaning so much more clearly by

Use forward slashes ('/'), not back-slashes ('\').

--
© John Stockton, Surrey, UK. ??*@merlyn.demo n.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Jul 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1460
by: Jason Reljac | last post by:
Howdy, I'm looking for a little help. I had a W2K server with Apache/PHP/mySQL installed and working. I had a specific page that ran a mySQL SELECT INTO OUTFILE and dumped the outfile into a web accessible directory. Now mySQL has been moved to another server and my SELECT INTO OUTFILE no longer works. mySQL help tells me SELECT INTO OUTFILE only can create a file on the local system.
3
4281
by: Dan Nash | last post by:
Hi Any ideas on this... having moved the web app to another server, and setup all the WebApp data (disable anonymous access etc), locally my site still asks me for a Username/Password, even though I've got authentication="Windows" in web.config. On another machine on the network, I don't get the Login box, but I just get a 401.2 error (you are not authorised to view this page).
2
1697
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are displayed. Can anybody know this issue and help me to resolve this. -- Thanks Hitesh
3
3074
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are displayed. Can anybody know this issue and help me to resolve this. In past i received the response saying that i should download the image first and then parse the actual response and modify the src attribute of the
2
2106
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. SQLExpress database file auto-creation error: The connection string specifies a local SQL Server Express instance using a...
0
3703
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) : base(message){} public FtpException(string message, Exception innerException) : base(message,innerException){}
4
2707
by: libsfan01 | last post by:
Hi all I want to have create a js function to use xmlhttprequest continously check a given url for any change in its value and then bring the contents of that page through. Here is my code so far, it just pulls is through once when the function is called, i would like it to work continuously: function getdata() {
2
3830
by: dmagliola | last post by:
Hello all, I'm experiencing a problem with ASP.Net for which I can't find a reasonable explanation, or any information. I'm currently developing an application that, through AJAX, asks the server for updated information to show, and can also send information to the server. To do this, I have an XMLHttpRequest that queries an Asynchronous HTTP
33
11833
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
41
3512
by: LayneMitch via WebmasterKB.com | last post by:
I was just chating with a few webdevelopers and it was brought to my attention that I need some type of server technology installed on my computer so I could get a visual of how my sites would look on the web. I'm completely new to the server technology stuff and don't need anything expensive - only for testing purposes and so other web artists can see my work and give me their opinion/suggestions. What is the process of getting...
0
7935
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7871
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8236
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8227
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6642
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5400
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2379
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1467
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.