fileOutputStream.write(bufer);
}
inputStream.close();
fileOutputStream.close();
Image image = Image.getInstance(photo.getWayToPhoto());
newInformation = ReportUtil.createPhoto("CompanyLicense", image.height(), image.width(), photo.getWayToPhoto());
ReportUtil.insertImage(photo.getWayToPhoto(), photo.getPhotoPlob().getBytes(1, (int) photo.getPhotoPlob().length()), template);
resultInformation += newInformation;
}
ReportUtil.replaceAllLabel(template, "%first_company_license%", resultInformation);
ReportUtil.replaceAllLabel(template, "%second_company_license%", resultInformation);