Forum Moderators: phranque

Message Too Old, No Replies

Image not loaded at client-side

         

Ultimatewarrior

6:35 am on Jun 6, 2004 (gmt 0)

10+ Year Member



hi everyone! this is my first post and i am a new memeber here. I have a problem regarding the loading of images on the client side. i am new to Apache web server so please bear with me.:) I am able to load jpg images on the sever pc but when the images could not be seen on other computers...what is the problem? a sample of the html code is below:

<html>
<body bgcolor="FDF5E6">
<h2><u>Instructions On Setting ODBC Data Source</u></h2>
<p>2) Click on the Data Sources icon.<img src="ODBCp\image002.jpg">
tools, ODBC driver</p>
</body>
</html>

Thanks.

gergoe

10:13 am on Jun 6, 2004 (gmt 0)

10+ Year Member



What kind of url you are trying to load on the server and on the clients? What happens if you try to load an image in your browser? (i.e. if you tried to load [192.168.0.1...] then try [192.168.0.1...]
The easiest you can do to troubleshoot the problem is that you check out the logs of the Apache, which you can find in the logs/ subdirectory of your Apache installation.

Ultimatewarrior

10:45 am on Jun 6, 2004 (gmt 0)

10+ Year Member



hmm....i dun know much abt the log of the apache installation...any websites to recommend?..

btw i use [126.1.1.25:8080...] to load the first page and hyperlink to link to other html...( i am using frame)
this is the first page
<html>
<head><title>Documentation</title></head>
<frameset cols="18%,*">
<FRAME src="Doc2.html" name="left" noresize>
<FRAME src="Doc3.html" name="main" noresize>
</frameset>
</html>

this is the hyperlink portion...(doc2)
<html>
<p><h4><a href="ODBC.html" target="main">Instructions On ODBC Data Source</a></h4></p>
<p><h4><a href="PR.html" target="main">Instructions on PR application</a></h4></p>
</body>
</html>

sonjay

11:36 am on Jun 6, 2004 (gmt 0)

10+ Year Member



Have you tried using the Apache-style forward slash in your image path instead of the Windows-style backslash:
ODBCp/image002.jpg
?

gergoe

1:55 pm on Jun 6, 2004 (gmt 0)

10+ Year Member



Then try the [126.1.1.25:8080...] link and see what happens. If you get a 404 Not Found page, or a very long explanation about a missing page (built-in internet explorer error page), then something went wrong with your Apache installation, but if you will get a directory listing, then the internet explorer tried to resolve the odbc\image002.jpg on the local machine or on the server (through windows networking someway).

The log files of the Apache are being written to the logs subdirectory of your Apache installation. For example if you've installed it into C:\Program Files\Apache Group\Apache then the log files are in the C:\Program Files\Apache Group\Apache\logs directory. There're two kind of log files produced by default; access.log which contains all the requests for a resource on your site (so you can see in this one, what your browser tried to request, and what was the response) and error.log which contains any errors occurred during the fulfillment of a request, for example if your browser tried to request a page (or an image) which does not exists, then it will be represented by a line in this file. Check out both files for any suspicious entry (access denied, file not found, etc) and come back to us with the results.

Ultimatewarrior

12:43 am on Jun 7, 2004 (gmt 0)

10+ Year Member



i got no problem in error.log...but i observe some differences in the access.log:

this statement below shows the rite image(ok):
158.1.2.21 - - [07/Jun/2004:08:37:34 +0800] "GET /ODBCp/image002.jpg HTTP/1.1" 304 -

this one dosent show the image:
158.1.2.21 - - [07/Jun/2004:08:37:34 +0800] "GET /ODBCp/image001.png HTTP/1.1" 200 13670

the difference is the last portion,"304" vs "200 13670"
do you know whats the problem?

jdMorgan

2:07 am on Jun 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ultimatewarrior,

Welcome to WebmasterWorld [webmasterworld.com]!

A 304-Not Modified response simply means that your browser has a copy of that file in its cache, and has asked the server if the file has been updated since your browser last cached it. In this case, the answer was "No."

I'm afraid this does not shed much light on your problem, but it might help to flush your browser cache before any (and each) test access.

Also, since that second file is a png file, make sure the MIME-type returned by your server is correct. Use the server headers checker [webmasterworld.com] and request those images again and see if any more differences are revealed.

Jim

Ultimatewarrior

6:33 am on Jun 7, 2004 (gmt 0)

10+ Year Member



hi...i cant tried the url cuz my network is protected...btw...i tried to load a much smaller image and the images can be seen ...but it doesnt make much sense cuz the images would be too small...my average image size would be abt 40-50kb..and the shrinked image is 4-5 kb....(too small)...:(

gergoe

6:41 pm on Jun 7, 2004 (gmt 0)

10+ Year Member



You can always try to access your server with telnet:
Open a command prompt, and type

telnet [i]ip_of_your_server[/i] 80

and hit enter.
In the telnet window you can try to type the following, but because you can't see what you type (by default) and you can't use the backspace to correct typos, it is better to type it into notepad first and paste it into the telnet window (to paste it, open the top-left menu, choose Edit and Paste)

GET /ODBCp/image002.jpg HTTP/1.1
Host: [i]full_name_of_the_server[/i]

After the last line you have to use two line feeds (enter). The full name of the server is the same what you configured in your httpd.conf file. You can change the first line (/ODBCp/image002.jpg) to any resource you want to check.

The output of the command might be very long, then scroll to the top of the whole thing to see what headers the server sent back to the response

Ultimatewarrior

1:13 am on Jun 8, 2004 (gmt 0)

10+ Year Member



i have solved the problem by unintstalling the latest version of apache and install the older version and it works well...dunno what happen actually..but thanks to all who have tried to help me..