{ "id": "62305", "key": "TIMOB-1673", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:59:04.000+0000", "created": "2011-04-15T02:59:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "apidoc", "base64decode", "defect", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:24:38.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}

When a string is decoded it is returned as a blob instead of a\nstring, even doing a toString or casting as a String() does not\nwork.

\n

iphone iOS 4 and sdk 1.4

{html}", "attachment": [], "flagged": false, "summary": "Ti.Utils.base64decode returns a blob instead of a string", "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": "126335", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Returning a blob sounds correct to me, but you should be able to\ndecode a binary blob into a string with a given encoding as\nwell.

\n

Since the blob type is undocumented in Titanium Mobile, it's\nunclear how you would do this or if there's actually a way\nimplemented:

\n

\nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/1580-...

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:04.000+0000", "updated": "2011-04-15T02:59:04.000+0000" }, { "id": "126336", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Currently you can use the 'text' property of TiBlob to access\nthe blob's text representation. However we will change the toString\nfor blobs so that it returns this value.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:04.000+0000", "updated": "2011-04-15T02:59:04.000+0000" }, { "id": "126337", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [218326b7eb517529de4fc73fab6d22f5ea43bd35])\n[#1673] TiBlob's description now includes text\nrepresentation if available. \nhttp://github.com/appcelerator/titanium_mobile/commit/218326b7eb517...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:59:05.000+0000", "updated": "2011-04-15T02:59:05.000+0000" }, { "id": "408451", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T19:24:38.000+0000", "updated": "2017-03-02T19:24:38.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }