I\'m trying to upload a base64 encoded image and save after decoding it. Image is getting uploaded and saved, and I can access it using a URL and everything..but the image g
I experienced this issue when making an mobile hybrid application that used Cordova to access an mobile phones camera and then post the image to the server. I resolved it by setting the correctOrientation property to true.
navigator.camera.getPicture(onSuccess, onFail,
{
quality: 80,
destinationType:Camera.DestinationType.DATA_URL,
correctOrientation : true
});