{ "id": "174334", "key": "TIMOB-27524", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2019-11-05T17:40:49.000+0000", "created": "2019-11-04T16:10:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20884", "name": "Release 8.2.1", "archived": false, "released": true, "releaseDate": "2019-10-25" } ], "issuelinks": [], "assignee": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-02T23:06:34.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Issue:* imageview toBlob() method returns null but it should return as a blob object. It returns a proper value in iOS\r\n\r\nSteps to Reproduce\r\n1. Run the following sample code on an emulator or a device\r\n2. Then check the console log.\r\n\r\n\t\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({\r\n\t\tclassName : 'win'\r\n\t});\r\n\r\n\tvar img = Ti.UI.createImageView({\r\n\t\timage : 'http://ursinus.prestosports.com/sports/wbkb/2019-20/photos/KRR_48190-1.jpg?max_width=160&max_height=120',\r\n\t\ttop : 40,\r\n\t\twidth : 200,\r\n\t\theight : 200\r\n\t});\r\n\r\n\twin.add(img);\r\n\r\n\tTi.API.info(\"ImgeView:\", img.toBlob());\r\n\r\n win.open();\r\n\r\n{code}\r\n\r\n\r\n{code:java}\r\nWARN] : TiDrawableReference: (main) [137661,138015] Could not open stream to get bitmap\r\n[INFO] : ImgeView: null\r\n[INFO] : Choreographer: Skipped 1797 frames! The application may be doing too much work on its main thread.\r\n[INFO] : APSAnalyticsStore: session.end\r\n[INFO] : APSAnalyticsService: Successfully sent 1 stored event(s)\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: imageView toBlob() method returns null.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.14.6\r\nNode.js\r\n Node.js Version = 10.16.3\r\n npm Version = 6.9.0\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.2.1.GA", "closedSprints": [ { "id": 1170, "state": "closed", "name": "2019 Sprint 23", "startDate": "2019-11-04T18:38:14.526Z", "endDate": "2019-11-17T18:38:00.000Z", "completeDate": "2019-11-18T16:38:18.423Z", "originBoardId": 114 }, { "id": 1171, "state": "closed", "name": "2019 Sprint 24", "startDate": "2019-11-18T16:40:09.114Z", "endDate": "2019-12-01T16:40:00.000Z", "completeDate": "2019-12-02T23:06:24.654Z", "originBoardId": 114 }, { "id": 1172, "state": "closed", "name": "2019 Sprint 25", "startDate": "2019-12-02T23:08:39.644Z", "endDate": "2019-12-15T23:08:00.000Z", "completeDate": "2019-12-16T05:54:54.518Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452455", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You can't take a screenshot of the ImageView via toBlob() until it's been displayed on-screen. This means you have to wait for the window to open.\r\n{code:javascript}\r\nwin.addEventListener(\"open\", function() {\r\n\tTi.API.info(\"ImageView:\", img.toBlob());\r\n});\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-04T19:07:24.000+0000", "updated": "2019-11-04T19:07:24.000+0000" }, { "id": "452476", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing per support comments.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-05T17:40:49.000+0000", "updated": "2019-11-05T17:40:49.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }