Yes,
I am using .net technologies but use HTML page and develop code for android,blackberry,iphone like that . i have been take image from camera and show in img tag but i want to read this image in byte or It is possible to upload in my application . Please provide me any help. For uploading i send you code .
var pictureSource;
var destinationType;
var id;
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
pictureSource = navigator.camera.PictureSourceType;
destinationType = navigator.camera.DestinationType;
}
function onPhotoDataSuccess(imageData) {
var smallImage = document.getElementById(id + '-smallImage');
smallImage.style.display = 'block';
smallImage.src = "data:image/jpeg;base64," + imageData;
}
function capturePhoto(btnId) {
id = btnId.id.split('-', 1);
navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
destinationType: destinationType.DATA_URL
});
}
function onFail(message) {
alert('Failed because: ' + message);
}
Noe how i can read in byte from img