[TIMOB-560] Downloading large files with Titanium.Network.createHTTPClient crashes
|Labels||android, files, httpclient, ios, large|
When files are downloaded via Titanium.Network.createHTTPClient(), data is stored in memory before the file is written to "disk". If a file is too large (over a few megs) this causes the app to crash.
See example in Kitchen Sink source code file: xhr_filedownload.js
(To duplicate, simply replace the download filename here with the name of a large, remote file. Start downloading, and wait a few minutes. An out-of-memory error will show up in the trace.)
- Stephen Tramer 2011-04-15
- Lee Morris 2017-03-09 Closing ticket as duplicate.