Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- takePicture(){
- Camera.getPicture({
- destinationType: Camera.DestinationType.DATA_URL,
- targetWidth: 1000,
- targetHeight: 1000
- }).then((imageData) => {
- // imageData is a base64 encoded string
- this.base64Image = "data:image/jpeg;base64," + imageData;
- alert('ok')
- }, (err) => {
- console.log(err);
- alert(err)
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement