On Fri, 22 Feb 2013, hdumbre wrote:
I m using following code,POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(path)); EncryptionInfo info = new EncryptionInfo(fs); Decryptor d = Decryptor.getInstance(info); if (d.verifyPassword(password)) { XSSFWorkbook wb = new XSSFWorkbook(d.getDataStream(fs)); FileOutputStream fi = new FileOutputStream(path); wb.write(fi); fi.close();
Why are you opening the stream as XSSFWorkbook and saving it out? Why not just write the stream straight to the file?
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
