horaciodeoro Posted January 4, 2007 Share Posted January 4, 2007 Hi!I can't get working a report with 2 images in the "page header" band when more than one page get rendered (exported to PDF).When I put little data (that generates 1 page) the report works OK. When I add more data (that would generate 2 pages) I get the following exception: net.sf.jasperreports.engine.JRException: Image read failed. at net.sf.jasperreports.engine.util.JRJdk14ImageReader.readImage(JRJdk14ImageReader.java:77) at net.sf.jasperreports.engine.util.JRImageLoader.loadImage(JRImageLoader.java:248) at net.sf.jasperreports.engine.JRImageRenderer.getImage(JRImageRenderer.java:330) at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1008) at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:586) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:554) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:519) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:285) at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:188) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:404) This happens putting the image in a parameter with a "String", "URL" or "InputStream", I've trying putting "using cache" = true and with JPG and GIF images... Any ideas to solve this? Is this a bug? This is happening at least with ireport/jasper report 1.2.4. The same happens with the lastest version (1.3).Thanks in advance!Horacio Link to comment Share on other sites More sharing options...
horaciodeoro Posted January 4, 2007 Author Share Posted January 4, 2007 Hi again!The problem was a third image on the page footer, that was using a InputStream and had "using cache" = false.I have other reports with similar problems, and I've fixed those with "using cache" = true (when using InputStream parameters). Horacio Link to comment Share on other sites More sharing options...
yldzy Posted May 19, 2014 Share Posted May 19, 2014 try on Image --> on Error Type "Blank" Link to comment Share on other sites More sharing options...
abdullah.ebullitent Posted May 4, 2016 Share Posted May 4, 2016 Yeah thank u....its worked for me Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now