I want to print a JasperReports's report via Java.
So I wrote a code as follows
try {
String r ="C:\\ireport\\Foods.jrxml";
JasperReport jr =JasperCompileManager.compileReport(r);
JasperPrint jp = JasperFillManager.fillReport(jr, null, conn);
JasperViewer.viewReport(jp);
} catch(Exception e) {
System.out.println(e);
}
But when I run the program I got following error.
net.sf.jasperreports.engine.JRException: Byte data not found at : flower1.png
I searched about this error in jasper community but I can't get understand the way they have explained the solution since I'm atotally newbie to the programming. So can anyone give me a solution please?
My jrxml had following code snippet
<imageExpression><![CDATA["flower1.png"]]></imageExpression>