You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/09/06 07:13:11 UTC

[2/5] git commit: [CB-4656] Don't add newlines in data urls within readAsDataUrl.

[CB-4656] Don't add newlines in data urls within readAsDataUrl.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/c2429260
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/c2429260
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/c2429260

Branch: refs/heads/master
Commit: c2429260f83a04d9e888689908d4b99b268404b3
Parents: e27899c
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Aug 29 14:19:22 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Aug 29 14:19:22 2013 -0400

----------------------------------------------------------------------
 src/android/FileUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/c2429260/src/android/FileUtils.java
----------------------------------------------------------------------
diff --git a/src/android/FileUtils.java b/src/android/FileUtils.java
index 2da2868..892c12c 100755
--- a/src/android/FileUtils.java
+++ b/src/android/FileUtils.java
@@ -948,7 +948,7 @@ public class FileUtils extends CordovaPlugin {
                             break;
                         default: // Base64.
                             String contentType = FileHelper.getMimeType(filename, cordova);
-                            byte[] base64 = Base64.encode(bytes, Base64.DEFAULT);
+                            byte[] base64 = Base64.encode(bytes, Base64.NO_WRAP);
                             String s = "data:" + contentType + ";base64," + new String(base64, "US-ASCII");
                             result = new PluginResult(PluginResult.Status.OK, s);
                     }