From 3753e3f3532da0f4dbd08ee1c1b68cf5be6465b9 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 6 Jun 2013 14:35:12 -0700 Subject: [PATCH] Trying to get DataResource reverted so that we don't have to worry about this blowing up while we're breaking things out. DataResource should be on a branch until it's ready! --- framework/src/org/apache/cordova/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java index f6db0ac7..aeca5057 100755 --- a/framework/src/org/apache/cordova/FileUtils.java +++ b/framework/src/org/apache/cordova/FileUtils.java @@ -949,7 +949,7 @@ public class FileUtils extends CordovaPlugin { result = new PluginResult(PluginResult.Status.OK, bytes, true); break; default: // Base64. - String contentType = dataResource.getMimeType(); + String contentType = FileHelper.getMimeType(filename, cordova); byte[] base64 = Base64.encode(bytes, Base64.DEFAULT); String s = "data:" + contentType + ";base64," + new String(base64, "US-ASCII"); result = new PluginResult(PluginResult.Status.OK, s);