
Error Imagen Captcha
Publicado por juan (1 intervención) el 28/08/2017 22:04:46
Buenas tardes, estoy Utilizando MySimpleCaptcha versión 1.2.1 y me funciona bien, el problema que tengo es al desplegarlo en un servidor nuevo, ya que se desconfiguro la imagen mostrando caracteres muy extraños.
El código para generar mi captcha es el siguiente:
1
2
3
4
5
6
7
8
9
10
11
12
13
private static final long serialVersionUID = 1L;
protected int _width = 200;
protected int _height = 49;
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
Captcha captcha = new Captcha.Builder(_width, _height)
.addText()
.build();
CaptchaServletUtil.writeImage(resp, captcha.getImage());
req.getSession().setAttribute(Captcha.NAME, captcha);
}
Estaría muy agradecido si alguien sabe por que se presenta esto.
Muchas gracias
Valora esta pregunta


0