[
https://issues.apache.org/jira/browse/CB-11199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325205#comment-15325205
]
D H commented on CB-11199:
--------------------------
I also discovered the encoding each chunk behavior. As James mentioned, I
tested upping the READ_CHUNK_SIZE, but I still experienced issues when it came
to reading PDF files. I was able to work around it by breaking out each 256K
chunk from the resulting data, decoding it, and then re-encoding the whole
string.
For reference, I was testing on an Android 6.0.0 device.
> Plugin File: FileReader readAsDataURL does not work with JPG on Android 4.4.2
> -----------------------------------------------------------------------------
>
> Key: CB-11199
> URL: https://issues.apache.org/jira/browse/CB-11199
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Affects Versions: 4.2.0
> Environment: Android 4.4.2
> Reporter: Caner Patır
> Labels: Android, triaged, wfc
>
> FileReader readAsDataURL method encodes invalid base64 data for a jpeg image.
> I could not decode the generate base64 data. But iI tried the same situation
> on version 4.1.1 it works successfully.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]