[ 
https://issues.apache.org/jira/browse/CB-11699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tony Leung updated CB-11699:
----------------------------
    Environment: Bug in JavaScript so all platforms will be affected  (was: Bug 
in JavaScript so all platform will be affected)

> FileReader.READ_CHUNK_SIZE is not working with Base64 conversion
> ----------------------------------------------------------------
>
>                 Key: CB-11699
>                 URL: https://issues.apache.org/jira/browse/CB-11699
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 4.2.0
>         Environment: Bug in JavaScript so all platforms will be affected
>            Reporter: Tony Leung
>
> CB-7862 - the fix for reading files in chunks defined the chunk size as 
> follow:
> FileReader.READ_CHUNK_SIZE = 256*1024;
> I found a bug on iOS that readAsDataURL in CDVFile.m, converting it to Base64 
> will not work because the chunk size 262144 is not dividable by 3.
> The quick fix will be FileReader.READ_CHUNK_SIZE = (256*1024) - 1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to