[CB-4656] Don't add line-breaks to base64-encoded images.

This commit is contained in:
Andrew Grieve 2013-08-29 14:08:49 -04:00
parent df3141fef4
commit 382e9421e7

View File

@ -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;