{"action":"created","issue":{"url":"https://api.github.com/repos/leonbloy/pngcs/issues/5","labels_url":"https://api.github.com/repos/leonbloy/pngcs/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/leonbloy/pngcs/issues/5/comments","events_url":"https://api.github.com/repos/leonbloy/pngcs/issues/5/events","html_url":"https://github.com/leonbloy/pngcs/issues/5","id":53590117,"number":5,"title":"Issues with Textual Chunks","user":{"login":"leonbloy","id":1162540,"avatar_url":"https://avatars.githubusercontent.com/u/1162540?v=3","gravatar_id":"","url":"https://api.github.com/users/leonbloy","html_url":"https://github.com/leonbloy","followers_url":"https://api.github.com/users/leonbloy/followers","following_url":"https://api.github.com/users/leonbloy/following{/other_user}","gists_url":"https://api.github.com/users/leonbloy/gists{/gist_id}","starred_url":"https://api.github.com/users/leonbloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonbloy/subscriptions","organizations_url":"https://api.github.com/users/leonbloy/orgs","repos_url":"https://api.github.com/users/leonbloy/repos","events_url":"https://api.github.com/users/leonbloy/events{/privacy}","received_events_url":"https://api.github.com/users/leonbloy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/leonbloy/pngcs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/leonbloy/pngcs/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/leonbloy/pngcs/labels/Priority-High","name":"Priority-High","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-07T02:24:13Z","updated_at":"2015-01-07T02:24:34Z","closed_at":null,"body":"_From [taurenje...@gmail.com](https://code.google.com/u/112390715196505478818/) on November 27, 2012 22:53:51_\n\n【problem 1】\r\nPngChunkTEXT.ParseFromRaw(ChunkRaw c) throws a exception, because the length of String[] k is 1,\r\nwhere k[0] is \"Software\\\\0Adobe....\".\r\n\r\nI modified the code, and it works well:\r\n\r\n// Updated by Jerin@2012-11-28\r\n//String[] k = Hjg.Pngcs.PngHelperInternal.charsetLatin1.GetString(c.Data).Split(new char[] { '\\0' });\r\nString[] k = Hjg.Pngcs.PngHelperInternal.charsetLatin1.GetString( c.Data ).Split( new string[] { @\"\\0\" }, StringSplitOptions.None );\r\n\r\n\r\n【problem 2】\r\nMy scenario is to add/read a custom metadata of png.\r\n\r\nI browsed samples of the project but found no way to read chunks only -- SampleCustomChunk/Program.cs/testRead(String file) gives an advice: call pngr.GetRow(pngr.ImgInfo.Rows - 1) first.\r\n\r\nso i add a public method in PngReader class:\r\n\r\npublic void ReadChunksOnly() {\r\n  if ( FirstChunksNotYetRead() )\r\n    ReadFirstChunks();\r\n  ReadLastChunks();\r\n}\r\n\r\n\r\n\r\n\r\nThanks for your work very much!\n\n_Original issue: http://code.google.com/p/pngcs/issues/detail?id=5_"},"comment":{"url":"https://api.github.com/repos/leonbloy/pngcs/issues/comments/68970263","html_url":"https://github.com/leonbloy/pngcs/issues/5#issuecomment-68970263","issue_url":"https://api.github.com/repos/leonbloy/pngcs/issues/5","id":68970263,"user":{"login":"leonbloy","id":1162540,"avatar_url":"https://avatars.githubusercontent.com/u/1162540?v=3","gravatar_id":"","url":"https://api.github.com/users/leonbloy","html_url":"https://github.com/leonbloy","followers_url":"https://api.github.com/users/leonbloy/followers","following_url":"https://api.github.com/users/leonbloy/following{/other_user}","gists_url":"https://api.github.com/users/leonbloy/gists{/gist_id}","starred_url":"https://api.github.com/users/leonbloy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonbloy/subscriptions","organizations_url":"https://api.github.com/users/leonbloy/orgs","repos_url":"https://api.github.com/users/leonbloy/repos","events_url":"https://api.github.com/users/leonbloy/events{/privacy}","received_events_url":"https://api.github.com/users/leonbloy/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T02:24:34Z","updated_at":"2015-01-07T02:24:34Z","body":"_From [hgonzalez@gmail.com](https://code.google.com/u/hgonzalez@gmail.com/) on November 30, 2012 19:56:52_\n\nI have already found the problem, it will be fixed soon. (Just commited in PngJ)"}}