{"action":"created","issue":{"url":"https://api.github.com/repos/SVGKit/SVGKit/issues/494","repository_url":"https://api.github.com/repos/SVGKit/SVGKit","labels_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/494/comments","events_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/494/events","html_url":"https://github.com/SVGKit/SVGKit/issues/494","id":191094867,"number":494,"title":"How do I serialize a SVGKImage? ","user":{"login":"sarperdag","id":47207,"avatar_url":"https://avatars.githubusercontent.com/u/47207?v=3","gravatar_id":"","url":"https://api.github.com/users/sarperdag","html_url":"https://github.com/sarperdag","followers_url":"https://api.github.com/users/sarperdag/followers","following_url":"https://api.github.com/users/sarperdag/following{/other_user}","gists_url":"https://api.github.com/users/sarperdag/gists{/gist_id}","starred_url":"https://api.github.com/users/sarperdag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarperdag/subscriptions","organizations_url":"https://api.github.com/users/sarperdag/orgs","repos_url":"https://api.github.com/users/sarperdag/repos","events_url":"https://api.github.com/users/sarperdag/events{/privacy}","received_events_url":"https://api.github.com/users/sarperdag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T19:00:18Z","updated_at":"2016-11-23T10:59:54Z","closed_at":null,"body":"Trying to load a SVGKImage into NSData, write it to disk and then re-store it into an SVGKImage but all my attempts have failed. What's the best practice for this?\r\n\r\nBasically, I just want to do some modifications on a .svg file loaded into the UI, save the latest state and then re-open for later use. \r\n\r\nAny help is greatly appreciated. Thanks!"},"comment":{"url":"https://api.github.com/repos/SVGKit/SVGKit/issues/comments/262484772","html_url":"https://github.com/SVGKit/SVGKit/issues/494#issuecomment-262484772","issue_url":"https://api.github.com/repos/SVGKit/SVGKit/issues/494","id":262484772,"user":{"login":"adamgit","id":292345,"avatar_url":"https://avatars.githubusercontent.com/u/292345?v=3","gravatar_id":"","url":"https://api.github.com/users/adamgit","html_url":"https://github.com/adamgit","followers_url":"https://api.github.com/users/adamgit/followers","following_url":"https://api.github.com/users/adamgit/following{/other_user}","gists_url":"https://api.github.com/users/adamgit/gists{/gist_id}","starred_url":"https://api.github.com/users/adamgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamgit/subscriptions","organizations_url":"https://api.github.com/users/adamgit/orgs","repos_url":"https://api.github.com/users/adamgit/repos","events_url":"https://api.github.com/users/adamgit/events{/privacy}","received_events_url":"https://api.github.com/users/adamgit/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T10:59:54Z","updated_at":"2016-11-23T10:59:54Z","body":"That looks correct to me. You have no output on the console, no errors or\nwarnings? What happens when you run in the debugger?\n\nOn Wednesday, 23 November 2016, Sarp Erdag <notifications@github.com> wrote:\n\n> Thanks Adam,\n>\n> Have been checking the docs but can't find a working proper code or\n> example.\n>\n> What I'm trying to achieve is very simple actually. I just want these 3\n> lines to work but when I try to read the NSData back in the second line, it\n> just comes nil.\n>\n> SVGKImage *image = [SVGKImage imageNamed:@\"SomeImage.svg\"];\n> NSData *data = [SVGKExporterNSData exportAsNSData:svgImage];\n> SVGKImage *reReadImage = [SVGKImage imageWithData:data];\n>\n> Where exactly can I find a working sample code for such a need?\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/SVGKit/SVGKit/issues/494#issuecomment-262460710>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAR1-Ta05x5ohJ0D_uEdgrjoyaPYJU1Kks5rA_9igaJpZM4K50G4>\n> .\n>\n"}}
{"actor":{"display_login":"adamgit"}}