function onPhotoDataSuccess(imageData) {
        console.log(imageData);

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

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

      // Show the captured photo
        //image.src = "data:image/jpeg;base64," + imageData; //the image file in base64
        image.src = imageData;

        //showTwitterBtn(imageData);
        showDivIfPhoto(imageData);

    }
// Called when a photo is successfully retrieved
Called when a photo is successfully retrieved
Called when a photo is successfully retrieved
function onPhotoDataSuccess(imageData) {
        console.log(imageData);
      var image = document.getElementById('uploadedPhoto');
      image.style.display = 'block';
        image.src = imageData;
        showDivIfPhoto(imageData);
    }
function onPhotoDataSuccess ( imageData ) { console . log ( imageData ) ; var image = document . getElementById ( 'uploadedPhoto' ) ; image . style . display = 'block' ; image . src = imageData ; showDivIfPhoto ( imageData ) ; }
Called when a photo is successfully retrieved
Called when a photo is successfully retrieved
// Get image handle // Unhide image elements // Show the captured photo //image.src = "data:image/jpeg;base64," + imageData; //the image file in base64 //showTwitterBtn(imageData);