After I update to xcode 9 and build the app, the native camera plugin I used, the preview img [src]= filePath was become blank, and I change it to base64 data, the data is empty. (i.e. Android is working fine). Anyonr know what happen?
let cameraOptions = {
sourceType: this.camera.PictureSourceType.CAMERA,
destinationType: this.camera.DestinationType.FILE_URI,
quality: 100,
targetWidth: 600,
targetHeight: 600,
encodingType: this.camera.EncodingType.JPEG,
correctOrientation: true
}
this.camera.getPicture(cameraOptions)
.then(file_uri => {
this.imageSrc = file_uri;
},
err => console.log(err));
html:
<img (tap)="openGallery()" [src]="imageSrc"/>