Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.2.0
-
None
-
Bug in JavaScript so all platforms will be affected
Description
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
Attachments
Issue Links
- duplicates
-
CB-11199 Plugin File: FileReader readAsDataURL does not work with JPG on Android 4.4.2
- Closed
- links to