This version of the documentation is outdated!
Click here for the latest released version.
cameraSuccess
onSuccess callback function that provides the image data.
function(imageData) {
// Do something with the image
}
Parameters
- imageData: Base64 encoding of the image data, OR the image file URI, depending on
[cameraOptions](cameraOptions.html)
used. (String
)
Example
// Show image
//
function cameraCallback(imageData) {
var image = document.getElementById('myImage');
image.src = "data:image/jpeg;base64," + imageData;
}