developerforce / Force.com-JavaScript-REST-Toolkit

ForceTK - a minimal Force.com REST API for JavaScript apps
BSD 3-Clause "New" or "Revised" License
315 stars 175 forks source link

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

Open vsvikram opened 7 years ago

vsvikram commented 7 years ago

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 }); });