title: Download a CSV file in Javascript (or Symfony) from a Base64
body: <p>I'm using a method to download a CSV file from a Base64.</p>
  
  <pre><code>var dlnk = document.getElementById("myDownloadButton");
  dlnk.href = 'data:application/octet-stream;base64,' + myBase64;
  dlnk.click();
  </code></pre>
  
  <p>It worked until I realized that when the base64 is too long, I have a problem. It will open a white page and it won't download my CSV file. I think it's because my base64 is too long.</p>
  
  <p>Do you have an alternative in JavaScript or in Symfony 3? </p>
  
  <p>Thank you</p>