I'm using a method to download a CSV file from a Base64.
var dlnk = document.getElementById("myDownloadButton");
dlnk.href = 'data:application/octet-stream;base64,' + myBase64;
dlnk.click();
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.
Do you have an alternative in JavaScript or in Symfony 3?
Thank you