XSSFCell cell04 = row1.createCell(4);
cell04.setCellStyle(style);
if ((qrBytes != null) && (qrBytes.length > 0)) {
InputStream qrByteArrayInputStream = new ByteArrayInputStream(qrBytes);
//byte[] inputQRBytes = IOUtils.toByteArray(qrByteArrayInputStream);
int inputImagePictureID1 = workbook.addPicture(qrByteArrayInputStream, Workbook.PICTURE_TYPE_PNG);
XSSFDrawing drawing = sheet.createDrawingPatriarch();
XSSFClientAnchor QRAnchor = new XSSFClientAnchor();
QRAnchor.setColl(cell04);
drawing.createPicture(QRAnchor, inputImagePictureID1);
}
XSSFCell cell04 = row1.createCell(4);
cell04.setCellStyle(style);
if ((qrBytes != null) && (qrBytes.length > 0)) {
InputStream qrByteArrayInputStream = new ByteArrayInputStream(qrBytes);
byte[] inputQRBytes = IOUtils.toByteArray(qrByteArrayInputStream);
int inputImagePictureID1 = workbook.addPicture(inputQRBytes, Workbook.PICTURE_TYPE_PNG);
XSSFDrawing drawing = sheet.createDrawingPatriarch();
XSSFClientAnchor QRAnchor = new XSSFClientAnchor();
QRAnchor.setColl(cell04);
drawing.createPicture(QRAnchor, inputImagePictureID1);