HI i am using camera plugin for accessing camera and photo gallery of the device.it working properly.
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL
});
function onSuccess(imageData) {
console.log('successday')
var image = document.getElementById('myImage');
console.log(image);
image.src = "data:image/jpeg;base64," + imageData;
console.log(image.src);
}
function onFail(message) {
alert('Failed because: ' + message);
}
return true;
I need to display the selected image in a horizontal grid. how can i do that?