hexdump in the browser

2009-09-23

This morning, I thought: why is XMLHttpReq for xml and text but not for binary files? It turns out you can use it for binary files, but not in each browser and only for remote files. I’ve written a small implementation of hexdump. It loads a binary file like this:

Then you can access each byte with code like this:

As described here.
With these techniques I made hexdump in the browser.

Comments

Post a comment