Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File Trigger.io:Android 4+;缺陷_File_Trigger.io_File Access - Fatal编程技术网

File Trigger.io:Android 4+;缺陷

File Trigger.io:Android 4+;缺陷,file,trigger.io,file-access,File,Trigger.io,File Access,我们正在使用trigger.io中的文件访问来获取Android Media Gallery中的一些本地文件,但是当我们现在选择图像时,它似乎总是抛出一个警告Exif data not include in the Android Media Gallerycontent://media/external/images/media/21#Intent;结束,我们无法获取所选的图像 下面是trigger.io返回的完整错误堆栈 [WARNING] Exif data not included in

我们正在使用trigger.io中的文件访问来获取Android Media Gallery中的一些本地文件,但是当我们现在选择图像时,它似乎总是抛出一个警告
Exif data not include in the Android Media Gallerycontent://media/external/images/media/21#Intent;结束
,我们无法获取所选的图像

下面是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的人员回答或解释此问题?谢谢

传递给
getImage
width
选项应该只是一个数字,例如

forge.file.getImage({source:'gallery', width: 100}, function(file) {
  // ... do stuff with file
});
而不是示例中的
'100px'