{ "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\n

The 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\n

HD Ticket: http://developer.appcelerator.com/helpdesk/view/74871
\r\nTested on Ti SDK 1.6.0 RC1
\r\niPhone Simulator 4.2

{html}", "attachment": [], "flagged": false, "summary": "iOS: Encoding base64 images not working", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130252", "author": { "name": "jamesdavidlow", "key": "jamesdavidlow", "displayName": "James David Low", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I have a patch for this here:
\n\nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/1611-...

\n

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?

\n

Thanks :)

{html}", "updateAuthor": { "name": "jamesdavidlow", "key": "jamesdavidlow", "displayName": "James David Low", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:06.000+0000", "updated": "2011-04-15T03:39:06.000+0000" }, { "id": "161301", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Should be using stream support instead of f.read()", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-01T10:43:53.000+0000", "updated": "2011-08-01T10:43:53.000+0000" }, { "id": "161453", "author": { "name": "kclark", "key": "kclark", "displayName": "Kincy Clark", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated to IMMEDIATE. Currently blocking a customer project", "updateAuthor": { "name": "kclark", "key": "kclark", "displayName": "Kincy Clark", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-01T17:25:49.000+0000", "updated": "2011-08-01T17:25:49.000+0000" }, { "id": "164258", "author": { "name": "aaron@clearlyinnovative.com", "key": "aaron@clearlyinnovative.com", "displayName": "Aaron K. Saunders", "active": true, "timeZone": "America/New_York" }, "body": "so, since this is fixed? How do i get it? do I need to move to the nightly builds?", "updateAuthor": { "name": "aaron@clearlyinnovative.com", "key": "aaron@clearlyinnovative.com", "displayName": "Aaron K. Saunders", "active": true, "timeZone": "America/New_York" }, "created": "2011-08-28T11:30:10.000+0000", "updated": "2011-08-28T11:30:10.000+0000" }, { "id": "164260", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "Ti.Util.base64encode seems not to be working in iOS at all in 1.7.2 - it breaks when used for plain text for HTTP Basic auth as well.", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2011-08-28T13:21:05.000+0000", "updated": "2011-08-28T13:21:05.000+0000" }, { "id": "171156", "author": { "name": "testerthetester", "key": "testerthetester", "displayName": "Dereck", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This still does not seem to be working in 1.7.5, it's making it impossible to finish a project I'm working on", "updateAuthor": { "name": "testerthetester", "key": "testerthetester", "displayName": "Dereck", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-02T07:14:07.000+0000", "updated": "2011-11-02T07:14:07.000+0000" }, { "id": "216400", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120827143312,1.8.2\r\nTested with Titanium  Studio: 2.1.2.201208201549\r\nDevice - iOS 5.1\r\nMachine OS - MAC 10.7.3", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-28T03:15:39.000+0000", "updated": "2012-08-28T03:15:39.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }