Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8398885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:09:34+00:00 2026-06-09T21:09:34+00:00

I am facing a weird problem just in chrome. I am getting an image

  • 0

I am facing a weird problem just in chrome. I am getting an image from server which works fine in Firefox, but in chrome the image loads for once and then it shows as broken image.

In console of Chrome I am getting the following message :

Resource interpreted as Image but transferred with MIME type text/html: "http://46.137.249.133:8080/Smart/Request/query.htm?ReqType=SessionUnawareAttachmentDownloadReqType&Thumbnail=Yes&AttachmentRowID=344929138455741006"
GET http://46.137.249.133:8080/Smart/Request/query.htm?ReqType=SessionUnawareAttachmentDownloadReqType&Thumbnail=Yes&AttachmentRowID=344929138455741006  

I also checked the mime type, but its image/jpeg. Here is the output of getimagesize()

Array
(
    [0] => 289
    [1] => 202
    [2] => 2
    [3] => width="289" height="202"
    [bits] => 8
    [channels] => 3
    [mime] => image/jpeg
)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:09:35+00:00Added an answer on June 9, 2026 at 9:09 pm

    This is the output from curl --verbose <your-url> and you can see that you web server (on port 8080) is advertising the file as text/html.

    < HTTP/1.1 200 OK
    < Server: Apache-Coyote/1.1
    [...]
    < Content-Disposition: attachment; filename="Hall2.JPG"
    < Content-Type: text/html;charset=ISO-8859-1
    

    You can fix this by setting the correct Media Type by adding a Content-Type header line to each HTTP response.

    In PHP, do it using header function, like:

    header('Content-Type: image/jpeg');
    

    It’s very similar for a Java Servlet page:

    HttpServletResponse res;
    res.setContentType("image/jpeg");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently facing a weird problem while executing a command from my bash script.
I am facing a weird problem. I have got a file called in which
weird problem or bug. I'm using the jQuery Form Plugin and it works fine
I am facing a weird problem in IE which is not happening with other
ohk i am facing this very weird problem . i have a cloud server
I'm just facing weird problem with cos function in objective c. I have the
I'm facing a weird problem. I looked around all over stackoverflow.com and elsewhere, but
I am facing some weird problem, I have installed the SMTP server on my
I'm facing a weird production problem. Environment is the following: JBOSS 4.0.2 SQL Server
I am facing a weird problem. I have a UITextField and an NSString which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.