Skip to content

Commit

Permalink
Trying to get DataResource reverted so that we don't have to worry ab…
Browse files Browse the repository at this point in the history
…out this blowing up while we're breaking things out. DataResource should be on a branch until it's ready!
  • Loading branch information
infil00p committed Jun 6, 2013
1 parent 979d8e6 commit 3753e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/org/apache/cordova/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ public void run() {
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);
Expand Down

0 comments on commit 3753e3f

Please sign in to comment.