Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 29, 2024

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
Collaborator

@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
16 checks passed
This pull request was closed.
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