[AC-1323] file.read().text on Android (JSON File) reads only partially
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2015-09-30T03:35:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | android, files |
Reporter | Brandon Young |
Assignee | Shak Hossain |
Created | 2015-06-03T21:09:02.000+0000 |
Updated | 2016-03-08T07:37:43.000+0000 |
Description
var file = Titanium.Filesystem.getFile(Ti.Filesystem.resourcesDirectory + "data/myFile.json");
var blob = file.read();
var text = blob.text;
only reads a portion of the JSON file. I can do a JSON.stringify(text) and see that it read a subset of the data. If you switch to pulling the same file from the web it works. Wanting to pull it locally so no dependency on internet.
I am seeing this as well. Any word?
[~bryoung] , [~brentonhouse] we can not replicate this issue with the provided test case, can you help us to reproduce it? Another test case? or details about the device / android version / android build tools etc Thanks