File tree Expand file tree Collapse file tree
src/java/org/apache/commons/codec/binary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -648,12 +648,15 @@ public static byte[] encodeBase64(byte[] binaryData) {
648648 }
649649
650650 /**
651- * Encodes binary data using the base64 algorithm into 76 character blocks separated by CRLF .
651+ * Encodes binary data using the base64 algorithm but does not chunk the output .
652652 *
653+ * NOTE: We changed the behaviour of this method from multi-line chunking (commons-codec-1.4) to
654+ * single-line non-chunking (commons-codec-1.5).
655+ *
653656 * @param binaryData
654657 * binary data to encode
655658 * @return String containing Base64 characters.
656- * @since 1.4
659+ * @since 1.4 (NOTE: 1.4 chunked the output, whereas 1.5 does not).
657660 */
658661 public static String encodeBase64String (byte [] binaryData ) {
659662 return StringUtils .newStringUtf8 (encodeBase64 (binaryData , false ));
You can’t perform that action at this time.
0 commit comments