Updated Branches: refs/heads/dev e27899c32 -> c2429260f
[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/dev Commit: c2429260f83a04d9e888689908d4b99b268404b3 Parents: e27899c Author: Andrew Grieve <[email protected]> Authored: Thu Aug 29 14:19:22 2013 -0400 Committer: Andrew Grieve <[email protected]> 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); }
