[
https://issues.apache.org/jira/browse/CB-4004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695196#comment-13695196
]
Andrew Grieve commented on CB-4004:
-----------------------------------
Patch is certainly an improvement! Thanks Chris!
Another quick-fix option would be to use String.fromCharCode in chunks.
Either way - doesn't hurt to take Chris' patch for now and iterate since it's
clearly better than the current approach.
Chris - I don't see your name on the list of people that have signed the Apache
contributor agreement. You'll need to before we can accept your patch:
http://www.apache.org/licenses/#clas (can be done all online, or scanned &
emailed).
> FileWriter fails to write large binary files
> --------------------------------------------
>
> Key: CB-4004
> URL: https://issues.apache.org/jira/browse/CB-4004
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Environment: Android (tested on Nexus 7, Android 4.2)
> Reporter: Chris Barton
> Assignee: Ian Clelland
> Priority: Minor
>
> When attempting to write a file or blob (let's say a 5MB zip archive) to disk
> via FileWriter#write, I receive a "RangeError, Maximum call stack size
> exceeded" when trying to turn the ArrayBuffer into a Base64 string in #exec.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira