title: Compress dcm files with JSZip
body: <p>im currently working on a dicom file upload system that uploads .dcm files with jquery file uploader. It is working fine but as DICOM data-sets can get very large i want to compress the files with JSZip before the upload.</p>
  
  <p>Simply i am passing the file object to a zip function that returns the zipped file object. This is working fine with commonly known files but not with DICOM files. I've already tried to encode the files to base64 string before zipping but that doesn't work either. 
  JSZip always throws me the following error:</p>
  
  <pre><code>Uncaught Error: The data of 'IM-0001-0001.dcm' is in an unsupported format !
  </code></pre>
  
  <p>I am using the following file compress function:</p>
  
  <pre><code>compressFile: function(data) {
  
      var zip = new JSZip();
  
      var file = data.files[0];
  
      zip.file(file.name, file, {binary:false});
  
      content = zip.generate({
          compression: 'DEFLATE'
      });
  
      return content;
  }
  </code></pre>
  
  <p>I have also tried with base64 and binary in the .file options but that didn't made the trick.</p>
  
  <p>Has anyone a clue on how to get that working? Im a beginner to JS so im sorry for noobish questions ^^</p>
  
  <p>Kind Regards</p>