想要将imageAsset转换为base64。 下面的示例代码 方法:{
takePicture() {
camera.takePicture({ width: 300, height: 300, keepAspectRatio: true, saveToGallery: false})
.then(imageAsset => {
this.pictureFromCamera = imageAsset;
var image = new Image();
image.src = imageAsset;
console.log(imageAsset);