{"action":"opened","issue":{"url":"https://api.github.com/repos/mbdavid/LiteDB/issues/919","repository_url":"https://api.github.com/repos/mbdavid/LiteDB","labels_url":"https://api.github.com/repos/mbdavid/LiteDB/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/mbdavid/LiteDB/issues/919/comments","events_url":"https://api.github.com/repos/mbdavid/LiteDB/issues/919/events","html_url":"https://github.com/mbdavid/LiteDB/issues/919","id":299108677,"number":919,"title":"Store Bitmap","user":{"login":"Kn1fe","id":5495448,"avatar_url":"https://avatars0.githubusercontent.com/u/5495448?v=4","gravatar_id":"","url":"https://api.github.com/users/Kn1fe","html_url":"https://github.com/Kn1fe","followers_url":"https://api.github.com/users/Kn1fe/followers","following_url":"https://api.github.com/users/Kn1fe/following{/other_user}","gists_url":"https://api.github.com/users/Kn1fe/gists{/gist_id}","starred_url":"https://api.github.com/users/Kn1fe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kn1fe/subscriptions","organizations_url":"https://api.github.com/users/Kn1fe/orgs","repos_url":"https://api.github.com/users/Kn1fe/repos","events_url":"https://api.github.com/users/Kn1fe/events{/privacy}","received_events_url":"https://api.github.com/users/Kn1fe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-21T20:02:55Z","updated_at":"2018-02-21T20:02:55Z","closed_at":null,"author_association":"NONE","body":"I'm using this to add image \r\n`CacheDB.GetCollection<Bitmap>(\"Icons\").Insert(path, data);`\r\nThen im trying to get this bitmap and im getting error from System.Drawing\r\n`Bitmap image = CacheDB.GetCollection<Bitmap>(\"Icons\").Find(Query.Contains(\"_id\", path))?.First();`\r\nError:\r\n> System.ArgumentException\r\n>   HResult=0x80070057\r\n>   Message = Invalid parameter.\r\n>   Source = System.Drawing\r\n>   Stack trace:\r\n>    in System.Drawing.Image._SetColorPalette(ColorPalette palette)\r\n>    in System.Drawing.Image.set_Palette(ColorPalette value)\r\n>    in LiteDB.BsonMapper.DeserializeObject(Type type, Object obj, BsonDocument value)\r\n>    in LiteDB.BsonMapper.Deserialize(Type type, BsonValue value)\r\n>    in LiteDB.BsonMapper.ToObject(Type type, BsonDocument doc)\r\n>    in LiteDB.BsonMapper.ToObject[T](BsonDocument doc)\r\n>    in LiteDB.LiteCollection`1.<Find>d__17.MoveNext()\r\n>    in System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\r\n"}}
{"actor":{"display_login":"Kn1fe"}}