View Full Version : Uploading camera Image to server

30 Aug 2011, 3:01 AM
Hello All,
I am working on a project where I need to change user picture so I am using phonegap to get Image from camera it's working now I have image data but how I will upload this image data to server.
Please help me..

Thank You

Code I am using

onPhotoDataSuccess = function (imageData) {
// Uncomment to view the base64 encoded image data
// console.log(imageData);

// Get image handle
var smallImage = document.getElementById('smallImage');

// Unhide image elements
smallImage.style.display = 'block';

// Show the captured photo
// The inline CSS rules are used to resize the image
imgData = imageData;
smallImage.src =