I'm trying to convert a blob to a base64 representation and back, something like this:

Code:
var blob = new Blob([data], {
    type : "text/plain"
});

blobToBase64(blob, function(b64) {      // convert BLOB to BASE64
    var newBlob = base64ToBlob(b64) ;   // convert BASE64 to BLOB
    console.log(blob.size + " != " + newBlob.size) ;
});
see a working example: http://jsfiddle.net/jeanluca/4bn5G/.

So, the strange thing is, that it works in Chrome (both numbers are equal), but not in Safari (als not on my iPad). Any suggestion what might be wrong in my code ?

Thnx