Web Servers on Unix and Linux - new server gives text for jpeg images

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > December 2007 > new server gives text for jpeg images





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author new server gives text for jpeg images
Anonymous Sender

2007-12-02, 7:24 am

I have many webpages with thumbnail pictures.
Each thumbnail is a hyperlink to a large picture.
The HTML code is similar to this:
[a href="full/full01.jpg"][img src="thumb/thumb01.jpg"][/a]

Now this worked okay on my old server. I got a new webhost,
and now when somebody clicks on thumbnail, they do not get
the full-size image. Whether you use IE, Mozilla or whatever,
same problem.

If I type URL of the image into the browser (for old server)
then I saw the image. But when I type in the URL for the
new server, it returns a page which is simply one line of
text being the URL I gave, instead of the image, e.g.
http://61.14.166.63/~kerstins/images/No.149.jpg

Doug Holtz

2007-12-03, 1:28 am


"Anonymous Sender" <anonymous@remailer.metacolo.com> wrote in message
news:d03cf674ead8f275554de934107d2695@re
mailer.metacolo.com...
>I have many webpages with thumbnail pictures.
> Each thumbnail is a hyperlink to a large picture.
> The HTML code is similar to this:
> [a href="full/full01.jpg"][img src="thumb/thumb01.jpg"][/a]
>
> Now this worked okay on my old server. I got a new webhost,
> and now when somebody clicks on thumbnail, they do not get
> the full-size image. Whether you use IE, Mozilla or whatever,
> same problem.
>
> If I type URL of the image into the browser (for old server)
> then I saw the image. But when I type in the URL for the
> new server, it returns a page which is simply one line of
> text being the URL I gave, instead of the image, e.g.
> http://61.14.166.63/~kerstins/images/No.149.jpg
>


A silly question, but did you change the link correctly for the new server's
IP address? I goofed this up when I upgraded and gave thge new server a
different IP address. I also did a database change and my web page did not
reflect that either
Also, check the httpd.conf for matching of folders to the icons directory.

doug


C.

2007-12-03, 1:21 pm

On 2 Dec, 11:47, Anonymous Sender <anonym...@remailer.metacolo.com>
wrote:
> I have many webpages with thumbnail pictures.
> Each thumbnail is a hyperlink to a large picture.
> The HTML code is similar to this:
> [a href="full/full01.jpg"][img src="thumb/thumb01.jpg"][/a]
>
> Now this worked okay on my old server. I got a new webhost,
> and now when somebody clicks on thumbnail, they do not get
> the full-size image. Whether you use IE, Mozilla or whatever,
> same problem.
>
> If I type URL of the image into the browser (for old server)
> then I saw the image. But when I type in the URL for the
> new server, it returns a page which is simply one line of
> text being the URL I gave, instead of the image, e.g.http://61.14.166.63/~kerstins/images/No.149.jpg


Firefox does this when the image content is not valid for the mime
type (but IIRC the mime type is for an image) e.g. viewing a GIF file
with mime type of PNG. But MSIE givse you the missing image icon.

I'd start by uploading an image to the site then downloading it
watching the HTTP exchange (using iehttpheaders in MSIE / firebug/
tamper data in Firefox). Make sure you transfer it as binary if you
have to use FTP.

I presume you are paying someone for your hosting - try asking them if
the procedure above doesn't reveal anything untoward.

C.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com