You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the excel I want to download says it is corrupted and needs to be fixed to work.
I took a look at the resulting excel file in VSCode and found that there are subtle changes to some of the bytes randomly every time I run it. With the same code and the same data
Can you share a repro where you create the Uint8List and call downloadData?
The only difference in calls that I can tell is that in the package:web example, you are calling toJS on the ArrayBuffer instead of on the view i.e. [data.buffer.toJS].toJS instead of [data.toJS].toJS. Maybe that shouldn't make a difference but I don't know how Blob interprets that.
I am trying to update my app from dart:html to package:web
I had this function:
and updated it to this:
But the excel I want to download says it is corrupted and needs to be fixed to work.
I took a look at the resulting excel file in VSCode and found that there are subtle changes to some of the bytes randomly every time I run it. With the same code and the same data
For example the start line:
You can see that "&P" turned into "5P"
Additionally the file size increased 7x from 5kb to 36kb. This is due to the file ending in 27777 additional null characters
I attached both the the broken and the legit version as excel files
broken.xlsx
legit.xlsx
The text was updated successfully, but these errors were encountered: