title: Displaying jasper report generated by a web service
body: <p>I have a java desktop application that should display a jasper report which is obtained from a web service. The web service returns the byte array as such:</p>
  
  <pre><code>JasperDesign jasperDesign = JRXmlLoader.load(input);
  JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
  JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametersMap, resultSetDataSource);
  byte[] pdfByteArray = JasperExportManager.exportReportToPdf(jasperPrint);
  return pdfByteArray;
  </code></pre>
  
  <p>How do I display the returned byte array in a JRViewer? Can I convert the byte array to a JasperPrint object? I cannot return a JasperPrint object from the web service because I get an "interface" error.</p>