Can JavaScript load raw bytes to use in HTML 5 Canvas?
Posted
by whiskeyspider
on Stack Overflow
See other posts from Stack Overflow
or by whiskeyspider
Published on 2010-04-09T02:37:46Z
Indexed on
2010/04/09
2:43 UTC
Read the original article
Hit count: 196
JavaScript
|html5
Say I had a file like... http://my.website.com/myfile.raw and this file was just raw bytes, representing an intensity image. Is it possible to grab this data and read the bytes in JavaScript? And then using it with HTML 5 canvas (e.g., putImageData) to draw an image?
Or is there some other way to do this in the browser without Java or Flash?
© Stack Overflow or respective owner