hutool QrCodeUtil解析二维码出现NotFoundException

解析部分二维码时出现com.google.zxing.NotFoundException:null,解析失败的二维码手机扫是能正常打开的,后面发现这个问题是因为原二维码图片太大了,将图片缩小后正常解析

BufferedImage image = ImgUtil.read(imageFile);

String content = QrCodeUtil.decode(image.getScaledInstance(200, 200, 1));
posted @ 2022-01-10 15:26  IAyue  阅读(950)  评论(0编辑  收藏  举报