You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1,From messages-attachments.ts:
sendPicture(camera:boolean) -> this.pictureService.getPicture(camera,false) ;
2, From picture.ts: getPicture(camera:boolean,crop:boolean):Promise<File>
return this.camera.getPicture(<CameraOptions>{
destinationType: 1,//image file URI
quality: 50,
correctOrientation: true,
saveToPhotoAlbum: true,
sourceType: camera ? 1 : 0, //from camera
mediaType: 2 //picture and video
})
.then((fileURI) => {
return crop ? this.crop.crop(fileURI, {quality: 50}) : fileURI;
})
.then((croppedFileURI) => {
return this.convertURLtoBlob(croppedFileURI); //line-A
});
No Promise<File> returned to caller. I doubt if the line this.convertURLtoBlob(...) don't work correct, but don't knnow why and have no way to debug.
Can anybody help?
The text was updated successfully, but these errors were encountered:
Actually, I have similar problem with picture upload on iOs.
I had an error like this:
Not allowed to load local resource : file:///var/mobile
I used this solution
1,From messages-attachments.ts:
sendPicture(camera:boolean) -> this.pictureService.getPicture(camera,false) ;
2, From picture.ts:
getPicture(camera:boolean,crop:boolean):Promise<File>
No
Promise<File>
returned to caller. I doubt if the line this.convertURLtoBlob(...) don't work correct, but don't knnow why and have no way to debug.Can anybody help?
The text was updated successfully, but these errors were encountered: