Skip to content

fix(ui): fix CoreDataFrame download for big file. WF-39#497

Merged
ramedina86 merged 1 commit intowriter:devfrom
madeindjs:WF-39
Jul 29, 2024
Merged

fix(ui): fix CoreDataFrame download for big file. WF-39#497
ramedina86 merged 1 commit intowriter:devfrom
madeindjs:WF-39

Conversation

@madeindjs
Copy link
Collaborator

The issue was too many parameters was given to String.fromCharCode() and make and error like "Maximum call stack size exceeded".

In fact, there is no need to try to convert the CSV to base64. So I simply used Blob and then URL.createObjectURL instead which should be more efficient.

Note, it also improve the mime/type declared, which make the OS open the file with a better software (Libreoffice instead of Text Editor for me)

The issue was too many parameters was given to `String.fromCharCode()` and make and error like "Maximum call stack size exceeded".

In fact, there is no need to try to convert the CSV to base64. So I simply used `Blob` and then `URL.createObjectURL` instead which should be more efficient.
@madeindjs madeindjs self-assigned this Jul 25, 2024
Copy link
Contributor

@FabienArcellier FabienArcellier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I test with a dataframe of 1 million lines with success.

@ramedina86 ramedina86 merged commit 7d92d02 into writer:dev Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants