How do you access byte level information in JavaScript?
Posted
by JustSmith
on Stack Overflow
See other posts from Stack Overflow
or by JustSmith
Published on 2010-06-03T13:08:51Z
Indexed on
2010/06/03
19:04 UTC
Read the original article
Hit count: 270
The generally accepted answer is that you can't. However there is mounting evidence that this is not true based on the existence of projects that read in types of data that are not basic HTML types. Some projects that do this are the JavaScript version of ProtoBuf and Smokescreen.
Smokescreen is a flash interpreter written in JS so if it is not possible to get at the bytes directly how are these projects working around this? The source to Smokescreen can be found here. I have looked it over but with JS not being my primary language right now the solution eludes me.
© Stack Overflow or respective owner