Not sure what I'm doing wrong here, following the documentation I do something like this:
var img = document.getElementById('image');
var imgBlob = base64ToBlob(getBase64Image(img));
var spark = new SparkMD5.ArrayBuffer();
spark.append(imgBlob);
console.log('md5: ' + spark.end());
No matter which image I use as the test, I always get the md5:
d0ad09ba8fe3801ac437d06ba62740d2
Not sure what I'm doing wrong here, following the documentation I do something like this:
No matter which image I use as the test, I always get the md5:
d0ad09ba8fe3801ac437d06ba62740d2
From the filesystem, I get the md5:
I've also tried with:
Which always returns that md5 no matter which test image I use.
The same happens when I use a more complicated example with transferred files (non-images), I get the same md5 sum that I get here with the images.
Any idea what I'm doing wrong here?