With Request.Binary you can download files in binary format through an AJAX (XHR) call. It requires Mootools and is tested with v1.2.3.
var req = new Request.Binary({url: 'demo.jpg'});
range - (array[2]) Startbit and endbit of the sequenz to download (can be used to download a file in more than one steps)
acceptRanges - (boolean) Try to perform a HTTP range request
for more information about options and usage see:
See license file.