title: How to decode a file from base64 encoding with JavaScript
body: <p>My company has a very strict intranet for work related, the net has a single doorway to allow files in and out. The doorway's security does not allow special kinds of files (*.txt, *.doc etc only), and even in those specific kinds of files, it searches for patterns that approve that the file is really that kind. (You can't simply disguise a *.zip file as a *.doc file.)</p>
  
  <p>As a security project, I was told to find a way to bypass this system, and insert a single C language .exe file that says <code>'Hello World'</code>.</p>
  
  <p>What I thought was to change the extension to .txt, and base64 encode it so that it would be more acceptable for the system. The problem is, how to decode it once it's in. It's very easy on the outside, PHP or any other decent language can do it for me. However, in there, the only real language I have access to is JavaScript (on IE6 and maybe, MAYBE, on IE8).</p>
  
  <p>So the question is as follows, can I use JavaScript to read a file from the file system, decode it, and write it back? or at least display the result for me?</p>
  
  <p>Note that I don't ask for decoding/encoding a message, this one is easy, I look to decode encode a <strong>file</strong>.</p>
  
  <p>Thanks.</p>