HEY tomsimmons , I have the same trouble with images when I´m exporting to HTML Stream to redirect it to the browser, please if you send me an example of you code that resolves the problem, I´ll be glad My Email : aramos@uci.cu thanks in advance Alain Code:public static byte[] exportReportToHtmlStream(JasperPrint jasperPrint, String imagesURI) throws JRException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); JRHtmlExporter exporter = new JRHtmlExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos); exporter.setParameter(JRHtmlExporterParameter.CHARACTER_ENCODING, "ISO-8859-1"); exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, new HashMap()); exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); exporter.exportReport(); return baos.toByteArray(); }public void generateReport(/*ActionEvent actionEvent,*/ String reportName, Map parameters, Collection data) throws ClassNotFoundException, IOException, JRException { FacesContext context = FacesContext.getCurrentInstance(); try { HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse(); HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest(); ServletOutputStream servletOutputStream = response.getOutputStream(); CommonInformation(reportName, parameters, data); response.setContentType("text/html"); response.setHeader("Content-disposition", "inline"); byte[] aux = exportReportToHtmlStream(jasperPrint, imagesURI) ; request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint); Enumeration temp = request.getSession().getAttributeNames(); servletOutputStream.write(aux); servletOutputStream.flush(); servletOutputStream.close(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } context.responseComplete(); } Post Edited by Alain Ramos at 11/07/08 16:48