detect qr codes from URL and cid

This commit is contained in:
heyethereum
2024-07-28 00:04:55 +08:00
parent 31dbb35d00
commit 20c9473bd3

View File

@@ -176,7 +176,7 @@ public class GmailService {
MessagePartBody attachPart = service.users().messages().attachments().get("me", messageId, attachmentId).execute();
byte[] imageBytes = Base64.decodeBase64(attachPart.getData());
BufferedImage image = ImageIO.read(new ByteArrayInputStream(imageBytes));
ImageIO.write(image, "png", new File("debug_image.png"));
// ImageIO.write(image, "png", new File("debug_image.png"));
return decodeQRCodes(image);
}