其他浏览器显示正常。
//生成验证码文本
String capText = captchaProducer.createText();
logger.info("[{}]生成验证码文本===={}",mobile,capText);
//利用生成的字符串构建图片
BufferedImage bi = captchaProducer.createImage(capText);
ServletOutputStream out = response.getOutputStream();
ImageIO.write(bi, "jpg", out);
try {
out.flush();
} finally {
out.close();
}
io流的形式将图片传到前端用img接收,在Edge浏览器显示
<img src="/resource/images/pic_login_code.jpg" onclick="getCaptcha();" width="80" height="32">
修改处理方案:
<