{ "id": "63822", "key": "TIMOB-3190", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11363", "description": "Mobile 1.8.0 M10", "name": "Sprint 2011-31", "archived": true, "released": true, "releaseDate": "2011-08-08" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-05T14:24:53.000+0000", "created": "2011-04-15T03:39:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "klist", "module_utils", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-28T03:15:39.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}
There is a HD ticket asking for the Base64 feature to work on\r\nimages as a blob, which do not work now. There is an Obj-C\r\nsuggested code that I have tested and works: http://www.pastie.org/1590281\r\n(UtilsModule.m)
\r\nThe JS example is:
\r\n\r\nvar f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory,'KS_nav_phone.png');\r\nvar blob = f.read();\r\nvar encoded = Ti.Utils.base64encode(blob);\r\n\r\nTi.API.info(encoded);
\r\n
\r\nHD Ticket: http://developer.appcelerator.com/helpdesk/view/74871
\r\nTested on Ti SDK 1.6.0 RC1
\r\niPhone Simulator 4.2
I have a patch for this here:
\n\nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/1611-...
But can someone please patch the Titanium mobile SDK so that I\ndon't have to keep updating every time a new SDK is realease?
\nThanks :)