mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-21 08:12:56 +08:00
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!
This commit is contained in:
parent
979d8e66f2
commit
3753e3f353
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user