khayrov/khayrov.github.com — pull request #1 by jechenique (2012-12-05 15:26:45+00:00)
Title: readAsArrayBuffer doesn't stores binary data

Hi,
thanks for this great example, it helped me a lot to understand how to bind binary data to KO.
But when trying to post the results to the server, I realized that the binary data was never contained inside the KO objects, so I found out that you was using readAsArrayBuffer instead of readAsBinaryString. I changed it and now it works as I was expecting to.

Commit msg:
Change made in order to store raw data into fileBinaryData.
readAsArrayBuffer stores a string containing the array length (ie: "ArrayBuffer[818]"), while readAsBinaryString stores the binary raw image.

Regards
Javier