Hello, Im new to jasper, just a quick question, do i have to compile and save to file before convert to the pdf. or could able to compile and run on the fly from the jrxml. eg: byte[] cr = JasperCompileManager.compileReportToFile( path + "Report.jrxml").getBytes(); ByteArrayInputStream is = new ByteArrayInputStream(cr); JasperRunManager.runReportToPdfStream(is, servletOutputStream, new HashMap(), new JREmptyDataSource()); Is it possible? however, that gives an net.sf.jasperreports.engine.JRException: Error loading object from InputStream