Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

How to insert image to salesforce record captured using cordova-plugin-camera from hybrid app? #94

Open
vsvikram opened this issue Sep 21, 2017 · 0 comments

Comments

@vsvikram
Copy link

vsvikram commented Sep 21, 2017

Code Snippet to get camera image in base64 format

navigator.camera.getPicture(function(imageData){
//console.log(imageData);
}, function(errorMsg){
// Most likely error is user cancelling out of camera
console.log(errorMsg);
},
{
quality: 50,
sourceType: Camera.PictureSourceType.CAMERA,
destinationType: Camera.DestinationType.DATA_URL
});
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant