poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Beeker <andreas.bee...@gmx.de>
Subject Re: Unable to save a file exported by Jasper Report using OPCPackage for encryption
Date Thu, 19 Feb 2015 22:57:22 GMT
Hi Jose,

does it work, if you simply copy the data into the encrypted outputstream?
something like:
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
...
exporter.setParameter(JRXlsExporterParameter.OUTPUT_STREAM, outputStream);
...
exporter.exportReport();
...
OutputStream os = enc.getDataStream(fs);
bos.writeTo(os);
...

Best wishes,
Andi



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message