Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
This repository was 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

@vsvikram

Description

@vsvikram

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions