From 382e9421e7f6ba9e21c1fe3e7c49d01eef2ecc7d Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Thu, 29 Aug 2013 14:08:49 -0400 Subject: [PATCH] [CB-4656] Don't add line-breaks to base64-encoded images. --- src/android/CameraLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index bd50a63..ba432cb 100755 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -763,7 +763,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect try { if (bitmap.compress(CompressFormat.JPEG, mQuality, jpeg_data)) { byte[] code = jpeg_data.toByteArray(); - byte[] output = Base64.encode(code, Base64.DEFAULT); + byte[] output = Base64.encode(code, Base64.NO_WRAP); String js_out = new String(output); this.callbackContext.success(js_out); js_out = null;