How can I access the binary representation with JavaScript from a file uploaded with a file input?:
<input type="file" name="file">
I can access the details of the uploaded file successfully with:
$('[name="image"]').get(0).files[0].name
// "2013-10-19 15.10.59.jpg"
$('[name="image"]').get(0).files[0].size
// 774016
$('[name="image"]').get(0).files[0].type
// "image/jpeg"
But not the real representation.
I found this tutorial that makes use of:
document.getElementById("photo").files[0].getAsBinary()
However, that method doesn't exists in my browser (Chrome Canary 34.0.1772.0 on OS X 10.9).