Remotely extracting image thumbnails with Binary-Ajax
Now retrieving binary data through XHR is possible, I started working on a proof of concept: a remote Exif data loader.
The idea is simple: if you have your original digicam photos online, just bulk downloaded from the camera, you only have very non-descriptive names for reference. Was that one interesting image called IMG_1234.jpg, or was that the blurry one and are you looking for IMG_2345.jpg? Your only option seems to download the whole blob, easily several MBytes per image for contemporary multi Mega Pixel camera.
Now there is hope for a smarter solution.
Most digicam images have embedded meta data in the Exif format, often including a nice little thumbnail.
Wouldn’t it be nice to retrieve this embedded data over the network to preview a photo by thumbnail?
I haven been working on this problem and have a proof of concept ready, coded as Greasemonkey user script for Firefox (1.5 and 2.0).
From a very high level the working principle is:
I think you didn’t read the article to the end. The example he gives for getting the bytes shows you to do this:
var abyte = filestream.charCodeAt(x) & 0xff;
Which is the same as your if (c > 255) c -= 63232; but cleaner and more understandable.