{ "id": "61897", "key": "TIMOB-1265", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:41.000+0000", "created": "2011-04-15T02:48:05.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "blob", "imageview", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:41.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Titanium Mobile SDK 1.3.2, the ImageView.toBlob() function\nreturns null (was working in 1.3.0).

\n
\n        var imageView = Ti.UI.createImageView({\n            width: 'auto',\n            height: 'auto'\n        });\n        imageView.addEventListener('load', function()\n            {\n                var blob = imageView.toBlob();\n                //  ^^^^ is null\n            });\n        imageView.image = pUrl;\n
{html}", "attachment": [], "flagged": false, "summary": "imageView.toBlob() returns null", "creator": { "name": "davidr.", "key": "davidr.", "displayName": "David R.", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidr.", "key": "davidr.", "displayName": "David R.", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125209", "author": { "name": "davidr.", "key": "davidr.", "displayName": "David R.", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The problem is in 1.3.3 too

{html}", "updateAuthor": { "name": "davidr.", "key": "davidr.", "displayName": "David R.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:05.000+0000", "updated": "2011-04-15T02:48:05.000+0000" }, { "id": "125210", "author": { "name": "davidr.", "key": "davidr.", "displayName": "David R.", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

If I use the (deprecated) url property instead of the image\nproperty it works. I believe the problem is here at ln 85 of\nTiUIImageViewProxy.m ( \nhttp://github.com/appcelerator/titanium_mobile/blob/master/iphone/C...:

\n
\n\n83 -(id)toBlob:(id)args\n84 {\n85  id url = [self valueForKey:@\"url\"];\n86  if (url!=nil)\n87  {\n
{html}", "updateAuthor": { "name": "davidr.", "key": "davidr.", "displayName": "David R.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:06.000+0000", "updated": "2011-04-15T02:48:06.000+0000" }, { "id": "125211", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested 1.6.0RC1 in KS (Base UI->Views->Image\nViews->Image Blob).

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:06.000+0000", "updated": "2011-04-15T02:48:06.000+0000" }, { "id": "125212", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Incorrect test; tested independently of that (the KS test tests\nsetting the image FROM a blob, not translating TO a blob - it's\nslightly misnamed).

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:06.000+0000", "updated": "2011-04-15T02:48:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }