|
本帖最后由 Taurusly 于 2019-11-8 13:49 编辑
FNImageClip.save({
destPath: 'fs://imageClip/clip.jpg',
copyToAlbum: false,
quality: 1
}, function(ret, err) {
console.log(JSON.stringify(ret)) //{"destPath":"/storage/emulated/0/UZMap/A6026741170702/imageClip/clip.jpg"}
if (ret) {
trans.decodeImgToBase64({
imgPath: 'fs://'+ret.destPath
}, function(rst, err) {
console.log(JSON.stringify(rst))
if (rst.status) {
let base64_data = 'data:image/jpg;base64,'+rst.base64Str;
console.log(base64_data) //复制出来图片打不开
}
});
}
});
图片不能正常打开,怎么才能打开? 得到base64上传到服务器也不能打开 |
|