{ "id": "146855", "key": "AC-931", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-09-30T01:00:59.000+0000", "created": "2015-04-13T12:12:10.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:14.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The following code that is supposed to write a file containing the view's image fails.\r\n{noformat}\r\nvar img = view.toImage();\r\nvar file = Ti.Filesystem.getFile(dir, \"file.bin\");\r\nfile.write(img);\r\n{noformat}\r\nThat's because TiUIView.toView() returns the KrollDict that TiUIHelper.viewToImage() creates. It should only return the media in the dict.", "attachment": [], "flagged": false, "summary": "Android's view.toImage returns a KrollDict instead to TiBlob", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Android\r\nTitanium 3.4.1", "comment": { "comments": [ { "id": "365335", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-30T01:00:59.000+0000", "updated": "2015-09-30T01:00:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }