I am using this captcha code in a jsp. I call the jsp by the following code using iframe:
<iframe id="captchaframe" align="center" name="captchaframe" src="captcha.jsp" width="120" height="40" scrolling="no"
frameborder="0" marginheight="-10" marginwidth="-10"/></iframe>
With explorer everything works pretty as in this picture:
But in Firefox the characters become something else entirely like in this picture:
How can I fix this?


I guess Firefox doesn’t recognise the output of your jsp file as image. Did you set mime content-type to image?
http://www.w3.org/Protocols/rfc1341/4_Content-Type.html