title: File saved locally with FileSaver not opening.
body: <p>I'm trying to save a file using FileSaver and "technically" it is working, I say "technically" because the file won't open.</p>
  
  <p>To test it I created a brand new file, uploaded and tried to download, still when I try to open the downloaded file I get:</p>
  
  <p><a href="https://i.stack.imgur.com/RAmPC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAmPC.png" alt="enter image description here"></a></p>
  
  <p>I download the file from Google Drive using:</p>
  
  <p><code>_service.Files.Export(fileId, type).ExecuteAsStream();</code></p>
  
  <p>Then I convert that stream to byte[]:</p>
  
  <pre><code>using (var ms = new MemoryStream())
  {
      var stream = StorageService.GetStream(file.StorageId); //invoking previous code
  
      stream.CopyTo(ms);
      resource.Content = ms.ToArray(); //saves to view model
  }
  </code></pre>
  
  <p>My Javascript:</p>
  
  <pre><code>download(fileId: string): void {
    this.fileStore.download(fileId).then(function (file: StorageFile) {
      if (file) {
        let data = new Blob([file.content], { type: file.type });
        fileSaver.saveAs(data, file.title);
      }
    });
  }
  </code></pre>
  
  <p>Any ideas on what am I doing wrong?</p>
  
  <p>Thanks!</p>