This question is locked. New answers and comments are not allowed.
Hi,
I was using phonegap FileTranser API to upload images to my WCF server(KendoUI-Icenium project). I was able to upload, but the issue is I can upload either jpg or png images. Is this the way phonegap image upload will work? Its not possible to support both image format together?
function getImage() {
navigator.camera.getPicture(uploadPhoto, function(message) {
alert('get picture failed');
}, {
quality: 50,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
encodingType: Camera.EncodingType = { JPEG : 0, PNG : 1}
}
);
}
This is the way I tried to get both format together. But it is not working. Please note that I have tested in Android phone..
Thanks,
Bavya.
I was using phonegap FileTranser API to upload images to my WCF server(KendoUI-Icenium project). I was able to upload, but the issue is I can upload either jpg or png images. Is this the way phonegap image upload will work? Its not possible to support both image format together?
function getImage() {
navigator.camera.getPicture(uploadPhoto, function(message) {
alert('get picture failed');
}, {
quality: 50,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
encodingType: Camera.EncodingType = { JPEG : 0, PNG : 1}
}
);
}
This is the way I tried to get both format together. But it is not working. Please note that I have tested in Android phone..
Thanks,
Bavya.