{ "id": "85791", "key": "TIMOB-7729", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-02-01T02:57:12.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:57:54.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "It would be nice to support the use of data urls on components like ImageView and WebView. \r\n\r\n{code}\r\nTi.UI.createImageView({image: \"data:image/gif;base64,R0lGOD\r\nlhCwAOAMQfAP////7+/vj4+Hh4eHd3d/v7+/Dw8HV1dfLy8ubm5vX19e3t7fr\r\n6+nl5edra2nZ2dnx8fMHBwYODg/b29np6eujo6JGRkeHh4eTk5LCwsN3d3dfX\r\n13Jycp2dnevr6////yH5BAEAAB8ALAAAAAALAA4AAAVq4NFw1DNAX/o9imAsB\r\ntKpxKRd1+YEWUoIiUoiEWEAApIDMLGoRCyWiKThenkwDgeGMiggDLEXQkDoTh\r\nCKNLpQDgjeAsY7MHgECgx8YR8oHwNHfwADBACGh4EDA4iGAYAEBAcQIg0Dk\r\ngcEIQA7\"});\r\n\r\n//or even on a webview\r\nTi.UI.createWebView({url: \"data:image/gif;base64,R0lGOD\r\nlhCwAOAMQfAP////7+/vj4+Hh4eHd3d/v7+/Dw8HV1dfLy8ubm5vX19e3t7fr\r\n6+nl5edra2nZ2dnx8fMHBwYODg/b29np6eujo6JGRkeHh4eTk5LCwsN3d3dfX\r\n13Jycp2dnevr6////yH5BAEAAB8ALAAAAAALAA4AAAVq4NFw1DNAX/o9imAsB\r\ntKpxKRd1+YEWUoIiUoiEWEAApIDMLGoRCyWiKThenkwDgeGMiggDLEXQkDoTh\r\nCKNLpQDgjeAsY7MHgECgx8YR8oHwNHfwADBACGh4EDA4iGAYAEBAcQIg0Dk\r\ngcEIQA7\"});\r\n{code}\r\n\r\nI know that Obj-C with NSURL should be able to do this.\r\n{code}\r\nNSURL *url = [NSURL URLWithString:base64String]; \r\nNSData *imageData = [NSData dataWithContentsOfURL:url];\r\nUIImage *ret = [UIImage imageWithData:imageData];\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Add the use of data urls on WebView and ImageView", "creator": { "name": "bytespider", "key": "bytespider", "displayName": "Rob Griffiths", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bytespider", "key": "bytespider", "displayName": "Rob Griffiths", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "195787", "author": { "name": "d4v1d", "key": "d4v1d", "displayName": "David Knell", "active": true, "timeZone": "America/New_York" }, "body": "Also need this on Titanium.Media.VideoPlayer so we can upload the video to Facebook without re-downloading the video file to the devices filesystem. See [this thread|http://stackoverflow.com/questions/5355846/iphone-facebook-video-upload] for more info on how it works.", "updateAuthor": { "name": "d4v1d", "key": "d4v1d", "displayName": "David Knell", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-23T11:00:05.000+0000", "updated": "2012-05-23T11:00:05.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }