{"action":"created","issue":{"url":"https://api.github.com/repos/satazor/SparkMD5/issues/23","labels_url":"https://api.github.com/repos/satazor/SparkMD5/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/satazor/SparkMD5/issues/23/comments","events_url":"https://api.github.com/repos/satazor/SparkMD5/issues/23/events","html_url":"https://github.com/satazor/SparkMD5/issues/23","id":78514934,"number":23,"title":"Getting the same md5 regardless of Blob contents","user":{"login":"silverbucket","id":317571,"avatar_url":"https://avatars.githubusercontent.com/u/317571?v=3","gravatar_id":"","url":"https://api.github.com/users/silverbucket","html_url":"https://github.com/silverbucket","followers_url":"https://api.github.com/users/silverbucket/followers","following_url":"https://api.github.com/users/silverbucket/following{/other_user}","gists_url":"https://api.github.com/users/silverbucket/gists{/gist_id}","starred_url":"https://api.github.com/users/silverbucket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverbucket/subscriptions","organizations_url":"https://api.github.com/users/silverbucket/orgs","repos_url":"https://api.github.com/users/silverbucket/repos","events_url":"https://api.github.com/users/silverbucket/events{/privacy}","received_events_url":"https://api.github.com/users/silverbucket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-20T12:57:34Z","updated_at":"2015-06-01T14:55:29Z","closed_at":"2015-06-01T14:55:29Z","body":"Not sure what I'm doing wrong here, following the documentation I do something like this:\r\n\r\n```javascript\r\nvar img = document.getElementById('image');\r\nvar imgBlob = base64ToBlob(getBase64Image(img));\r\n\r\nvar spark = new SparkMD5.ArrayBuffer();\r\nspark.append(imgBlob);\r\nconsole.log('md5: ' + spark.end());\r\n```\r\n\r\nNo matter which image I use as the test, I always get the md5:\r\n`d0ad09ba8fe3801ac437d06ba62740d2`\r\n\r\nFrom the filesystem, I get the md5:\r\n```\r\n$ md5 test_image.png \r\nMD5 (test_image.png) = d1a87269a70cb65ed4a41d272d376052\r\n```\r\n\r\n---\r\n\r\nI've also tried with:\r\n\r\n```javascript\r\nSparkMD5.ArrayBuffer.hash(imgBlob, false);\r\n\"d41d8cd98f00b204e9800998ecf8427e\"\r\n```\r\n\r\nWhich always returns that md5 no matter which test image I use.\r\n\r\nThe 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.\r\n\r\nAny idea what I'm doing wrong here?\r\n"},"comment":{"url":"https://api.github.com/repos/satazor/SparkMD5/issues/comments/107550297","html_url":"https://github.com/satazor/SparkMD5/issues/23#issuecomment-107550297","issue_url":"https://api.github.com/repos/satazor/SparkMD5/issues/23","id":107550297,"user":{"login":"silverbucket","id":317571,"avatar_url":"https://avatars.githubusercontent.com/u/317571?v=3","gravatar_id":"","url":"https://api.github.com/users/silverbucket","html_url":"https://github.com/silverbucket","followers_url":"https://api.github.com/users/silverbucket/followers","following_url":"https://api.github.com/users/silverbucket/following{/other_user}","gists_url":"https://api.github.com/users/silverbucket/gists{/gist_id}","starred_url":"https://api.github.com/users/silverbucket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverbucket/subscriptions","organizations_url":"https://api.github.com/users/silverbucket/orgs","repos_url":"https://api.github.com/users/silverbucket/repos","events_url":"https://api.github.com/users/silverbucket/events{/privacy}","received_events_url":"https://api.github.com/users/silverbucket/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T14:55:29Z","updated_at":"2015-06-01T14:55:29Z","body":"Nevermind, this was a user error."}}