I\'m trying to download an xlsx file with reactJS but i\'m receiving this message when i try to open my file after download:
\"Excel can not open file \'file.xlsx\' beca
guys!
The problem was: my binary data was being converted for string by javascript and this was breaking my excel file. i solved my problem converting my binary data on backend to text and then on frontend i make the inverse. The following links helped me:
java convert inputStream to base64 string
Creating a Blob from a base64 string in JavaScript
Thank you for everyone that tried to help. I hope my question can help others