{ "id": "62756", "key": "TIMOB-2124", "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": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:10.000+0000", "created": "2011-04-15T03:11:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "ios", "ipad", "iphone", "rplist", "toblob" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:10.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}

on iOS 4.1 both iPhone and iPad using 1.4.2 and 1.5 toBlob()\nreturns null.

\n

following code shows this:
\nvar win = Titanium.UI.currentWindow;

\n

var preview_frame = Ti.UI.createImageView({

\n
\nimage: 'http://alpha.eyejot.com/mediabits/davidg/0E15E94BE83D150000404089CD/2B5104C0436B6000007522895E.png?smt=31',\ntop: 20,\nleft: 0,\nwidth: 320,\nheight: 187\n
\n

});

\n

// ----------------------------------- // did our photo finish\nloading? // -----------------------------------\npreview_frame.addEventListener('load', function(e)
\n{

\n
\nvar image_blob = preview_frame.toBlob();\nTi.API.info (\"image_blob = \" + image_blob);\n
\n

});

\n

win.add (preview_frame);

{html}", "attachment": [], "flagged": false, "summary": "iphone & ipad toBlob is returning null", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127567", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [b2c4fe69b81b8c69a539ae1e14b8a1a68bc1598f])\n[#2124 state:fixed-in-qa] toBlob was old and was\nunaware of the image property or even of files and blobs being used\nwith imageView. \nhttp://github.com/appcelerator/titanium_mobile/commit/b2c4fe69b81b8...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:09.000+0000", "updated": "2011-04-15T03:11:09.000+0000" }, { "id": "127568", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

3.2.2 ipad, 4.0.2 ipod touch 3rg gen.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:10.000+0000", "updated": "2011-04-15T03:11:10.000+0000" }, { "id": "127569", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

er. mobile sdk 1.5.0.5dc262e

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:10.000+0000", "updated": "2011-04-15T03:11:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }