I have a code look as below:
JasperPrint print = JasperFillManager.fillReport(reportsrc, Param, conn);
JRExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outputFile);
exporter.exportReport();
which are working fine to output a pdf file to a physical folder. What I want is to export the pdf as base64 string. Is there any way to do that?
thanks