{ "id": "140952", "key": "TIMOB-18149", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-12-12T19:02:11.000+0000", "created": "2014-12-04T08:57:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "DocumentViewer", "IOS", "html", "image" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-12-12T19:02:11.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Opening a html document saved in the temp directory (deviceId/tmp), is impossible to show images added with tag.\r\nI tried to add the image as link to filesystem, web url and base64, in png and gif: nothing. \r\n\r\n\r\n\r\n\r\nimagesPath is a concatenation of Ti.Filesystem.resourcesDirectory and the filepath inside assets directory.\r\nbase64 is the file conversion, Ti.Utils.base64encode(logoFile.read())\r\n\r\nI tried to print the document and on the paper image was printed, opening the file from tmp directory with a browser (Chrome, Firefox, Safari) the image is always showed.", "attachment": [], "flagged": false, "summary": "On iOS Document viewer html files in tempDirectory cannot show images", "creator": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.1\r\nSDK 3.4.1.GA\r\niPad Mini and iOS Simulator 8.1", "comment": { "comments": [ { "id": "334966", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nPlease provide us a simple test case to reproduce your problem, Thanks\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-12-05T01:44:47.000+0000", "updated": "2014-12-05T01:44:47.000+0000" }, { "id": "335015", "author": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "var file, filename, logoFile, htmlContent, docViewer;\r\n\r\nfile = Ti.Filesystem.createTempFile();\r\nfilename = \"test.html\";\r\n\r\nlogoFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory + 'images/logo.png');\r\nhtmlContent = 'testtest';\r\nfile.write(htmlContent);\r\nfile.rename(filename);\r\n\r\ndocViewer = Ti.UI.iOS.createDocumentViewer({'url':Ti.Filesystem.tempDirectory + filename});\r\ndocViewer.addEventListener('unload', function(){\r\n\tTi.Filesystem.getFile(Ti.Filesystem.tempDirectory + filename).deleteFile();\r\n});\r\ndocViewer.show();", "updateAuthor": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-05T08:28:24.000+0000", "updated": "2014-12-05T08:28:24.000+0000" }, { "id": "453172", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing. Unable to reproduce the issue.\r\n\r\nAxway Appcelerator Studio, build: 5.1.4.201909061933 \r\nmacOS : 10.15\r\nNode.js Version : 8.9.1\r\nnpm Version : 5.5.1\r\nAppcelerator CLI : 7.1.2\r\nTitanium CLI\r\nCLI Version : 5.2.1\r\nnode-appc Version : 0.2.49\r\nTitanium SDKs : 8.3.0.GA\r\niPhone 8 13.2.2\r\n", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-12-12T19:02:11.000+0000", "updated": "2019-12-12T19:02:11.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }