Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -



  • Please log in to reply
1 reply to this topic

#1 ravendawson


    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 30 December 2010 - 06:48 AM

I have a problem with displaying an image in a tag like this:

<img src=”bild.php?id=7” />

The image is in a database, so I only can show it through a php-script. When I use the mime application/xhtml xml the image is not displayed in Firefox. When I use the mime-type “text/html” (but still Doctype XHTML1.1) it is displayed. What could be the problem with that, any solution?
  • 0

#2 John


    CC Mentor

  • Moderator
  • 4450 posts
  • Location:New York, NY

Posted 30 December 2010 - 06:17 PM

You are using the incorrect MIME type. Since you are displaying an image (and not html), you should use the image/jpg or image/png or another variant.
This tutorial should help you: http://forum.codecal...our-images.html
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download