Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1323] file.read().text on Android (JSON File) reads only partially

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-30T03:35:37.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, files
ReporterBrandon Young
AssigneeShak Hossain
Created2015-06-03T21:09:02.000+0000
Updated2016-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.

Comments

  1. Brenton House 2015-06-11

    I am seeing this as well. Any word?
  2. Radamantis Torres-Lechuga 2015-06-11

    [~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

JSON Source