473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Pictures not displaying

A similar message was posted not long ago but doesn't seem to attack
the exact problem. here is the deal
i have a simple piece of html that looks like so

<html>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/
BrianLaraUkexpat.jpg/154px-BrianLaraUkexpat.jpg" ALT="Brian Lara" />
<br />
<img src="http://bp2.blogger.com/_bkFIPLIOGL8/R4ZPzFvyDvI/AAAAAAAAHSg/
BdlOrCXl6sg/s1600-h/whshed-derection.jpg" />
</html>

When I try to view this in the browser (FF) the first picture displays
fine, but second doesn't. When I copy and paste the 2nd URL in the
browser, picture displays fine.
Any ideas what might be going on?

Thanks
Jun 27 '08 #1
2 1600
ch***********@yahoo.com wrote:
A similar message was posted not long ago but doesn't seem to attack
the exact problem. here is the deal
i have a simple piece of html that looks like so

<html>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/
BrianLaraUkexpat.jpg/154px-BrianLaraUkexpat.jpg" ALT="Brian Lara" />
<br />
<img src="http://bp2.blogger.com/_bkFIPLIOGL8/R4ZPzFvyDvI/AAAAAAAAHSg/
BdlOrCXl6sg/s1600-h/whshed-derection.jpg" />
</html>

When I try to view this in the browser (FF) the first picture displays
fine, but second doesn't. When I copy and paste the 2nd URL in the
browser, picture displays fine.
Any ideas what might be going on?
Wrong content type for server.

First image:

Content-Type: image/jpeg
Etag: "-1878406826255769336"
Accept-Ranges: bytes
Last-Modified: Tue, 15 Jan 2008 01:14:59 GMT
Content-Length: 4510
Date: Fri, 09 May 2008 17:39:23 GMT
Server: lighttpd/1.4.13
Age: 23772
X-Cache: HIT from sq12.wikimedia.org, MISS from sq12.wikimedia.org
X-Cache-Lookup: HIT from sq12.wikimedia.org:3128, MISS from
sq12.wikimedia.org:80
Via: 1.0 sq12.wikimedia.org:3128 (squid/2.6.STABLE18), 1.0
sq12.wikimedia.org:80 (squid/2.6.STABLE18)

200 OK

Second image:
Content-Type: text/html; charset=UTF-8
Last-Modified: Sat, 10 May 2008 00:17:03 GMT
Expires: Sun, 11 May 2008 00:17:03 GMT
Cache-Control: max-age=86400
Content-Encoding: gzip
Date: Sat, 10 May 2008 00:17:03 GMT
Server: fife
Content-Length: 272

200 OK
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jun 27 '08 #2
On May 9, 8:20 pm, "Jonathan N. Little" <lws4...@central.netwrote:
chuck_levi...@yahoo.com wrote:
A similar message was posted not long ago but doesn't seem to attack
the exact problem. here is the deal
i have a simple piece of html that looks like so
<html>
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/
BrianLaraUkexpat.jpg/154px-BrianLaraUkexpat.jpg" ALT="Brian Lara" />
<br />
<img src="http://bp2.blogger.com/_bkFIPLIOGL8/R4ZPzFvyDvI/AAAAAAAAHSg/
BdlOrCXl6sg/s1600-h/whshed-derection.jpg" />
</html>
When I try to view this in the browser (FF) the first picture displays
fine, but second doesn't. When I copy and paste the 2nd URL in the
browser, picture displays fine.
Any ideas what might be going on?

Wrong content type for server.

First image:

Content-Type: image/jpeg
Etag: "-1878406826255769336"
Accept-Ranges: bytes
Last-Modified: Tue, 15 Jan 2008 01:14:59 GMT
Content-Length: 4510
Date: Fri, 09 May 2008 17:39:23 GMT
Server: lighttpd/1.4.13
Age: 23772
X-Cache: HIT from sq12.wikimedia.org, MISS from sq12.wikimedia.org
X-Cache-Lookup: HIT from sq12.wikimedia.org:3128, MISS from
sq12.wikimedia.org:80
Via: 1.0 sq12.wikimedia.org:3128 (squid/2.6.STABLE18), 1.0
sq12.wikimedia.org:80 (squid/2.6.STABLE18)

200 OK

Second image:
Content-Type: text/html; charset=UTF-8
Last-Modified: Sat, 10 May 2008 00:17:03 GMT
Expires: Sun, 11 May 2008 00:17:03 GMT
Cache-Control: max-age=86400
Content-Encoding: gzip
Date: Sat, 10 May 2008 00:17:03 GMT
Server: fife
Content-Length: 272

200 OK

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
Jonathan,
Thanks for the response. I am happy that there is a reason for the
difference in behaviour, it had been driving me demented for a couple
days now!
However, I will admit that I didn't understand the reason- because I'm
not well versed with HTML.

I gather that the files are stored differently on their respective
servers. In the one case it is stored as a picture but in the other
case it is stored as a compressed text file?

If I type the URL into my browser somehow the browser knows to treat
it as a picture but if it is in the img tag, it does not know?

Any way around it?

Tx
Jun 27 '08 #3

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

Similar topics

4
by: qqqq | last post by:
Hi I have a web page that displays properties for sale. The web page links to a database. The page shows information in the database and the path to the picture. The code is
6
by: Nutshell | last post by:
Hi, I created a web page which contains table. I use table cells to display a picture using <img src>. The problem is that some pictures are not being fully displayed, only a quarter of the left...
3
by: David. E. Goble | last post by:
Hi all; I have this list of pictures; <script type="text/javascript"> var picssigs = new...
4
by: Dale Ring | last post by:
Access 2000 I am trying to print a report that only some of the records have pictures. When the report prints, I do not want a blank image control showing on the report. This project is a test...
12
by: Wadim Grasza | last post by:
I want to store and display (on a form or a report) multiple pictures per record in an access database. The pictures are not stored within the database. They are stored as files and the database...
13
by: gooze | last post by:
Hello I am working on an applicaion that shows several pictures on a webpage. These pictures are saved in a MySQL DB as BLOB. I noticed, that the web server suffers in its performance by...
9
by: Talal Itani | last post by:
Hello, This is the first time I use a database program. I am trying to build a product database. Each product will have an ID number, a description, and a photograph. I need the table to...
1
by: greatjuli | last post by:
Please can anyone help with a javascript code to display bigger pictures me.jpg, me2.jpg.... on the same page by clicking on their thumnails on the same page. I have done what i believe is the...
2
by: Tyler | last post by:
I need to have a form that displays a group of 20 pictures in 4 rows of 5 pictures. The pictures are of people. Each Subject record has a picture field. I have a query written that selets the...
4
by: redpears007 | last post by:
Hi Again, Throwing this one out to you again as i am not getting anywhere and can find little to no information out there. I am currently displaying images (Jpegs) in access via the routine...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.