{"action":"created","issue":{"url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC/issues/1","repository_url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC","labels_url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC/issues/1/comments","events_url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC/issues/1/events","html_url":"https://github.com/HotWordland/WebNewsJSBridgeOC/issues/1","id":153912943,"number":1,"title":"你好，请教个问题。js要怎么调取iOS功能里的本地图片使用呢，我要给js传什么图片地址才能显示在网页上呢。我现在用mainbundle获取到本地图片的地址然后传给的js，但是在网页上显示不出来","user":{"login":"Verchen","id":14816675,"avatar_url":"https://avatars.githubusercontent.com/u/14816675?v=3","gravatar_id":"","url":"https://api.github.com/users/Verchen","html_url":"https://github.com/Verchen","followers_url":"https://api.github.com/users/Verchen/followers","following_url":"https://api.github.com/users/Verchen/following{/other_user}","gists_url":"https://api.github.com/users/Verchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Verchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Verchen/subscriptions","organizations_url":"https://api.github.com/users/Verchen/orgs","repos_url":"https://api.github.com/users/Verchen/repos","events_url":"https://api.github.com/users/Verchen/events{/privacy}","received_events_url":"https://api.github.com/users/Verchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T02:47:26Z","updated_at":"2016-05-21T01:06:28Z","closed_at":null,"body":"不好意思哈 才看到\r\n你可以尝试在ios里将图片获取到后转换成Base64的编码数据 然后传递给js 因为html的img标签可以加载base64编码的数据\r\n```ObjC\r\n NSString *imgB64 = [UIImageJPEGRepresentation(image, 1.0) base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];\r\n  //把图片在磁盘中的地址传回给JS\r\n NSString *key = [manager cacheKeyForURL:imageURL];\r\n NSString *source = [NSString stringWithFormat:@\"data:image/png;base64,%@\", imgB64];"},"comment":{"url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC/issues/comments/220749955","html_url":"https://github.com/HotWordland/WebNewsJSBridgeOC/issues/1#issuecomment-220749955","issue_url":"https://api.github.com/repos/HotWordland/WebNewsJSBridgeOC/issues/1","id":220749955,"user":{"login":"HotWordland","id":6984865,"avatar_url":"https://avatars.githubusercontent.com/u/6984865?v=3","gravatar_id":"","url":"https://api.github.com/users/HotWordland","html_url":"https://github.com/HotWordland","followers_url":"https://api.github.com/users/HotWordland/followers","following_url":"https://api.github.com/users/HotWordland/following{/other_user}","gists_url":"https://api.github.com/users/HotWordland/gists{/gist_id}","starred_url":"https://api.github.com/users/HotWordland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HotWordland/subscriptions","organizations_url":"https://api.github.com/users/HotWordland/orgs","repos_url":"https://api.github.com/users/HotWordland/repos","events_url":"https://api.github.com/users/HotWordland/events{/privacy}","received_events_url":"https://api.github.com/users/HotWordland/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T01:06:28Z","updated_at":"2016-05-21T01:06:28Z","body":"@Verchen \r\n不好意思哈 才看到\r\n你可以尝试在ios里将图片获取到后转换成Base64的编码数据 然后传递给js 因为html的img标签可以加载base64编码的数据\r\n\r\n NSString *imgB64 = [UIImageJPEGRepresentation(image, 1.0) base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];\r\n  //把图片在磁盘中的地址传回给JS\r\n NSString *key = [manager cacheKeyForURL:imageURL];\r\n NSString *source = [NSString stringWithFormat:@\"data:image/png;base64,%@\", imgB64];"}}
{"actor":{"display_login":"HotWordland"}}