• 0
  • 0

uniapp 图片转base64

2020-05-13 21 0 admin 所属分类:Hbuilder
uni.getFileSystemManager().readFile({
    filePath: result.tempFilePaths[0],
    encoding: 'base64',
    success: res = > {
        let base64 = 'data:image/jpeg;base64,' + res.data
    }
});


返回顶部