Skip to content

Instantly share code, notes, and snippets.

@frankieshakes
Forked from brianleroux/gist:148672
Created July 16, 2009 21:50
Show Gist options
  • Save frankieshakes/148712 to your computer and use it in GitHub Desktop.
Save frankieshakes/148712 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