{ "id": "125011", "key": "TIMOB-16245", "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": null, "resolutiondate": null, "created": "2014-01-19T10:46:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2019-10-27T20:50:54.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "ImageView.toImage() is supposed to return a TiBlob according to the doc, but it returns a KrollDict, where the blob is in the media key.\r\nThis is implemented in the TiUIView superclass, which calls TiUIHelper.viewToImage. TiUIImageView should override toImage and return a TiBlob, or you can just change the documentation...", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.ImageView.toImage() returns KrollDict object instead of Blob object", "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": null, "comment": { "comments": [ { "id": "288792", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I verified that Ti.UI.ImageView does not implement toImage method but inherits it.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T06:59:54.000+0000", "updated": "2014-01-20T06:59:54.000+0000" }, { "id": "452283", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "In a native module I tried:\r\n\r\n```\r\nKrollDict imageBlob = TiUIHelper.viewToImage(proxy.getProperties(), myScrollView.getOuterView());\r\nObject data = imageBlob.get(\"media\");\r\nbyte[] byteArray = (byte[])data; // this creashes (cannot cast blob to byte array)\r\nBitmap bitmap = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length);\r\n```\r\nHow can I use a `toImage()` for BitmapFactory?\r\n", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-27T20:50:54.000+0000", "updated": "2019-10-27T20:50:54.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }