From dcc799b7a090d1a4e3a4f0ee1779bd86eedf7441 Mon Sep 17 00:00:00 2001 From: "peter.danner" Date: Wed, 1 Aug 2007 12:32:33 +0000 Subject: Changed encode() for serializeNode and #&13; problem. Now the (default) line break is \n instead of \r\n on Windows platforms git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@874 d688527b-c9ab-4aba-bd8d-4036d912da1d --- common/src/at/gv/egovernment/moa/util/Base64Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/src/at/gv/egovernment/moa/util') diff --git a/common/src/at/gv/egovernment/moa/util/Base64Utils.java b/common/src/at/gv/egovernment/moa/util/Base64Utils.java index ba2c4fb0e..ad29180a6 100644 --- a/common/src/at/gv/egovernment/moa/util/Base64Utils.java +++ b/common/src/at/gv/egovernment/moa/util/Base64Utils.java @@ -92,7 +92,7 @@ public class Base64Utils { */ public static String encode(InputStream inputStream) throws IOException { ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); - Base64OutputStream base64Stream = new Base64OutputStream(byteStream); + Base64OutputStream base64Stream = new Base64OutputStream(byteStream, "\n".getBytes()); byte[] bytes = new byte[256]; int bytesRead; -- cgit v1.2.3