Angular 错误:未捕获(承诺中):资产'/存储/仿真/0/DCIM/Restored/IMG_20200115_103131.jpg';找不到
正在使用nativescript应用程序,需要访问映像并将其转换为base64Angular 错误:未捕获(承诺中):资产'/存储/仿真/0/DCIM/Restored/IMG_20200115_103131.jpg';找不到,angular,nativescript,imagesource,Angular,Nativescript,Imagesource,正在使用nativescript应用程序,需要访问映像并将其转换为base64 .then(function(selection) { selection.forEach(function (selected) { imageSourceModule .fromAsset(selected) .then((imageSource) => { var imageBase64 = imageSource.toBas
.then(function(selection) {
selection.forEach(function (selected) {
imageSourceModule
.fromAsset(selected)
.then((imageSource) => {
var imageBase64 = imageSource.toBase64String("jpg",60);
console.log(imageBase64);