0
幫助,我怎樣才能圖像的URL轉換爲Base64(離子2)如何將圖片的URL轉換爲Base64(離子2)
this.camera.getPicture({
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.FILE_URI,
quality: 100,
encodingType: this.camera.EncodingType.PNG,
}).then(imageData => {
console.log('THIS IS THE URI ' + imageData);
//How do I get the image and convert it to base64 ?
}, error => {
this.error = JSON.stringify(error);
});
解決方案是否適合您? –