Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bizarre Image error

Status
Not open for further replies.

MasterKaos

Programmer
Jan 17, 2004
107
GB
I recently changed hosting providers, and copied my entire directory tree to the new server.

One of the page i am currently working on has become unable to display a particular image. When typing in the url for the image directly


i get "The resource cannot be displayed" in IE and "Not Acceptable" in firefox. I have tried deleting it and uploading it once again, i have tried renaming it but the problem persists. The image works fine when i downlaod it to my PC. The image has not been edited or modified in any way since it was working fine on the the old server.

This error is happening to one other image, bootladder1_blend.jpg, but all other images, png's and jpg's work fine.

Any ideas what's going on, and how i can fix this?

----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
 
Are you ftping? make sure that when you FTP the transfer mode is set to Binary, not ascii (if its set to automatic detction, manually change it to Binary)
 
I am FTPing using binary, but i tried using ASCII as well and still the problem persists.

This is so weird, i don't know why these two images are treated differntly from all the other .jpg files. I've also noticed in FireFox the error number is 406

----------------------------------------------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
 
Interesting. On IE6 I get

[tt]HTTP Error 406 - Not acceptable[/tt]

which implies something wrong with the way the server has been set up. When you request a URL, the browser sends the server a list of file types that it can understand. The server thinks (wrongly) that .jpg files aren't one of those types and sends a 406 error instead.

Take it up with tech support at your host. My guess is that they aren't setting the correct MIME type for jpg files, but it's not an area that I know a lot about.


-- Chris Hunt
 
When you copied the directory tree to the new server, did you set the correct permissions for the new folders?

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top