title: JavaScript Base 64 Decoding Binary Data Doesn't Work
body: <p>I have a simple PHP file which loads a file from my server, base64 encodes it and echoes it out.</p>
  
  <p>Then I have a simple HTML page that uses jQuery to fetch this file, base64 decode it and do a checksum test. The checksum test is not working.</p>
  
  <p>I md5'd the file in PHP after encoding it and md5'd it in javascript before decoding it and the checksums matched (So nothing went wrong during transit). However, the pre encoding and post decoding checksums do NOT match.</p>
  
  <p>I am using <a href="http://www.webtoolkit.info/javascript-base64.html" rel="nofollow">webtoolkit.base64.js</a> for decoding it in JavaScript. The file is a binary file (A ZIP archive).</p>
  
  <p>Is there a problem with the decoding library or something else I'm not aware of that could cause this issue? Could it be a problem with the MD5 library I'm using (<a href="http://pajhome.org.uk/crypt/md5/md5.html" rel="nofollow">http://pajhome.org.uk/crypt/md5/md5.html</a>)</p>