Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.4.0
-
None
Description
In LOAD_URL nativeToJs mode, the Android native side of the bridge incorrectly encodes binary data.
It serializes the data to Base64, but fails to quote it, or provide any hints to the receiving JavaScript about what to do with the data.
A typical message (from mobile spec, file.spec.86), ends up encoded like this:
cordova.callbackFromNative('File1615636988',true,1,[4oKsw6sgLSBUaGVyZSBpcyBhbiBleGNlcHRpb24gdG8gZXZlcnkgcnVsZS4gIEV4Y2VwdCB0aGlzIG9uZS5iaW46AQA=],false);
which immediately results in a syntax error when passed to the webview.
Attachments
Issue Links
- blocks
-
CB-6368 FileReader readAsBinaryString can't work in Android.
- Closed