Closed
Bug 263386
Opened 20 years ago
Closed 20 years ago
Firefox can´t handle image/jpeg binary
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ranier, Assigned: bugzilla)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Server: IdHttpServer (Delphi)
Url: http://localhost/
Header: content-type: image/jpeg
File: tnp.jpeg
Firefox can´t handle correct the jpeg file, it display ascii caracters.
Internet Explorer 6, does correct handle the jpeg file.
Reproducible: Always
Steps to Reproduce:
1. Start http server
2. Browse the url: http://localhost/
3. Firefox display only ascii caracters.
Actual Results:
Firefox can´t display the picture of the tmp.jpeg
Expected Results:
Internet Explorer 5, display the image of tmp.jpeg
Comment 1•20 years ago
|
||
Are you sure it's being served as image/jpeg? That description sounds like it's
being served as text/plain.
When the page is open displaying ASCII characters, what does the "Type" field in
Page Info (Tools - Page Info) say?
Reporter | ||
Comment 2•20 years ago
|
||
The header "content-type: image/jpeg" was correct sent by server (IdHTTPServer).
snip:
" ResponseInfo.ContentText := 'image/jpeg';
IdHTTPServer.ServeFile(AThread, ResponseInfo, tmpFile);
"
1. Firefox display in Page Info:
Address: http://localhost/
field type: text/html
2. Internet Explorer 6 display in Page Info:
Address: http://localhost/
type: file HTM
------------------------------------------------------------------------
Opening the file (tmp.jpeg) with File - Open File:
1. Firefox display em Page Info:
Address: file:///C:/tmp/tmp.jpg
field type: image/jpeg
2. Internet Explorer 6 display em Page Info:
Address: file://C:\tmp\tmp.jpg
field type: Format Image JPEG
Comment 3•20 years ago
|
||
> 1. Firefox display in Page Info:
> Address: http://localhost/
> field type: text/html
Then you're not sending the JPG as image/jpeg. You're sending it as text/html,
so FF is trying to display it as such. Check and fix your server's MIME types.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•