You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/06/20 20:21:25 UTC

[jira] [Commented] (CB-6994) Windows 8 does not save big file transferred using Blob

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

ASF GitHub Bot commented on CB-6994:
------------------------------------

GitHub user fberton opened a pull request:

    https://github.com/apache/cordova-plugin-file/pull/54

    CB-6994 - Windows 8 does not save big file transferred using Blob

    When trying to save Blob using FileWriter.write method, if the blob's size is too high, we get a stack overflow exception during the conversion of the blob into an basic array.
    
    In order to avoid this exception, we pass the Blob or File directly in FileProxy (avoid the conversion to ArrayBuffer) and we use a specific method in FileProxy to save the Blob directly to the filesystem by using Streams (safe).
    
    More info at : https://issues.apache.org/jira/browse/CB-6994

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Touchit/cordova-plugin-file CB-6994

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-file/pull/54.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #54
    
----
commit 823d2ff100757b21411e990633d084482bbca52e
Author: Florian BERTON <fl...@touchify.co>
Date:   2014-06-20T17:22:16Z

    Fix function write for big files on windows 8

----


> Windows 8 does not save big file transferred using Blob
> -------------------------------------------------------
>
>                 Key: CB-6994
>                 URL: https://issues.apache.org/jira/browse/CB-6994
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File, Windows 8
>    Affects Versions: 3.5.0
>            Reporter: Maxime LUCE
>            Assignee: Maxime LUCE
>
> When trying to save Blob using FileWriter.write method, getting a stack overflow exception during the conversion of the blob into an basic array.
> WinRT (WinJS) provide a method to write Blob directly to the filesystem. It uses Streams so it's safe for memory.
> More info at :
> http://code.msdn.microsoft.com/windowsapps/Blob-Sample-0e35889e/sourcecode?fileId=43594&pathId=962515806
> Method : writeBlobToFile



--
This message was sent by Atlassian JIRA
(v6.2#6252)