pjfanning commented on code in PR #823: URL: https://github.com/apache/poi/pull/823#discussion_r2147264487
########## poi-examples/src/main/java/org/apache/poi/examples/xssf/streaming/SavePasswordProtectedXlsx.java: ########## @@ -95,7 +96,7 @@ public static void save(final InputStream inputStream, final String filename, fi EncryptionInfo info = new EncryptionInfo(EncryptionMode.agile); Encryptor enc = Encryptor.getInstance(info); enc.confirmPassword(pwd); - opc.save(enc.getDataStream(fs)); + opc.save(enc.getDataStream(fs, TempFileCreationStrategy.getDefaultStrategy())); Review Comment: please revert this change - there is no need to complicate the example with this -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org