opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Base64.java
@@ -290,10 +290,9 @@ outputStream.write(decodedData); } } else { final PrintStream outputPrintStream = getOutputStream(); outputPrintStream.write(decodedData); outputPrintStream.println(); outputPrintStream.flush(); try (final PrintStream outputPrintStream = getOutputStream()) { outputPrintStream.write(decodedData); } } } catch (final Exception e) { throw newToolException(e, ResultCode.OPERATIONS_ERROR,