{ "id": "61192", "key": "TIMOB-560", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T02:31:57.000+0000", "created": "2011-04-15T02:31:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "files", "httpclient", "ios", "large" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:09:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

When files are downloaded via\nTitanium.Network.createHTTPClient(), data is stored in memory\nbefore the file is written to \"disk\". If a file is too large (over\na few megs) this causes the app to crash.

\n

See example in Kitchen Sink source code file:\nxhr_filedownload.js

\n

(To duplicate, simply replace the download filename here with\nthe name of a large, remote file. Start downloading, and wait a few\nminutes. An out-of-memory error will show up in the trace.)

{html}", "attachment": [], "flagged": false, "summary": "Downloading large files with Titanium.Network.createHTTPClient crashes", "creator": { "name": "burggraf", "key": "burggraf", "displayName": "Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "burggraf", "key": "burggraf", "displayName": "Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123553", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This issue has been resolved by allowing file chunking on\nAndroid and direct download-to-file on iOS. So, a dupe of #2281 (iOS)\nand #1381 (Android).

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:57.000+0000", "updated": "2011-04-15T02:31:57.000+0000" }, { "id": "410503", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:09:01.000+0000", "updated": "2017-03-09T21:09:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }