我们在 trigger.io 中使用文件访问来获取 Android 媒体库中的一些本地文件,但是当我们现在选择图像时,它似乎总是抛出警告Exif data not included in content://media/external/images/media/21#Intent;end
并且我们无法获得我们选择的图像。
这是 trigger.io 返回的完整错误堆栈。
[WARNING] Exif data not included in content://media/external/images/media/21#Intent;end
[DEBUG] Returned: {"content":{"message":"Error reading file","type":"UNEXPECTED_FAILURE","subtype":null},"callid":"F98E2835-0CA2-48BF-9B16-3DA58681E412","status":"error"}
[WARNING] Exif data not included in content://media/external/images/media/21#Intent;end
[DEBUG] Native call logging.log with task.params: {"message":"[FORGE] \n{ message: 'Error reading file',\n type: 'UNEXPECTED_FAILURE',\n subtype: null }","level":20}
[DEBUG] Returned: {"content":null,"callid":"42E4A654-E9C8-4F9B-ADB0-E7560B3F2EA5","status":"success"}
[INFO] No reload update available.
这是一个示例代码:
forge.file.getImage({source:'gallery',width:'100px'},function(file) {
forge.file.base64(file, function (base) {
forge.logging.log(base);
var base64 = 'data:image/png;base64,'+base;
Zepto('#profile-img').attr('src',base64);
},function(err){
forge.logging.log(err);
});
});
trigger.io 的人可以回答或解释这个问题吗?谢谢!