You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/02/25 21:12:14 UTC

[jira] [Commented] (CB-2537) Out of memory errors : FileTransfer download fails for large files over a certain size

    [ https://issues.apache.org/jira/browse/CB-2537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13586238#comment-13586238 ] 

Andrew Grieve commented on CB-2537:
-----------------------------------

Yeah, the plugin is currently accumulating the entire response in an NSMutableData and writing it to disk only after the transfer completes... Not the best idea.
                
> Out of memory errors : FileTransfer download fails for large files over a certain size 
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-2537
>                 URL: https://issues.apache.org/jira/browse/CB-2537
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.4.0
>         Environment: Mac OSX 10.7 / Xcode 4.6 / iOS FW 5 & 6
>            Reporter: charbon bleu
>            Assignee: Andrew Grieve
>
> Hello, 
> on iOS (FW 5 & 6), i'm facing a problem with the download function of FileTransfer API. 
> Downloading files over a certain size (approx 300MB / 400MB) leads to a out of memory error. 
> is there any way to bypass this limit ? by applying a chunked mode like in the upload function ? 
> Thanks for your help

--
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