agmoyano / node-jasper

JasperReports from Node.js
83 stars 50 forks source link

Image not rendering in jasperReports using node-jasper in Node.js #81

Closed pravink135 closed 2 months ago

pravink135 commented 2 months ago

I am encountering an issue where an image is not rendering in a PDF generated by Jasper Reports using the node-jasper library in a Node.js environment. Despite following various troubleshooting steps, the image still does not appear in the generated PDF.

Steps to reproduce:

test.jrxml attached test.jrxml.txt

test.js attached as txt test.txt

Let me know if there's any way out. Thanks.

pravink135 commented 2 months ago

Although i have resolved that by tweaking the jrxml file by <imageExpression><![CDATA[new java.io.ByteArrayInputStream(java.util.Base64.getDecoder().decode($P{logo}))]]></imageExpression>