moxiecode/plupload — pull request #630 by TimNZ (2012-10-08 09:37:21+00:00)
Title: Optionally return Base64 encoded data of selected files

New setting 'return_file_data : Boolean'.
If true, return File object will have 'data' property populated with
Base64 encoded file data.

Makes it very easy to preview images on the client in any flash capable
browser without having to submit to server.

-------------------
var uploader = new plupload.Uploader({
return_file_data: true
});
uploader.init();
uploader.bind('FilesAdded', function(up, files)
{
$('#an-img').get(0).src = 'data:image/png;base64,' + files[0].data;
}