Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created July 16, 2009 20:34
Show Gist options
  • Save brianleroux/148672 to your computer and use it in GitHub Desktop.
Save brianleroux/148672 to your computer and use it in GitHub Desktop.
<script>
function getPicture() {
navigator.camera.getPicture(getPicture_Success, null, { quality: 10 });
};
function getPicture_Success(imageData) {
alert("getpic success");
document.getElementById("test_img").src = "data:image/jpeg;base64," + imageData;
}
</script>
<img style="width:60px;height:60px" id="test_img" src="" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment