{"action":"opened","issue":{"url":"https://api.github.com/repos/PowerDMS/Owin.Scim/issues/20","repository_url":"https://api.github.com/repos/PowerDMS/Owin.Scim","labels_url":"https://api.github.com/repos/PowerDMS/Owin.Scim/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/PowerDMS/Owin.Scim/issues/20/comments","events_url":"https://api.github.com/repos/PowerDMS/Owin.Scim/issues/20/events","html_url":"https://github.com/PowerDMS/Owin.Scim/issues/20","id":148849938,"number":20,"title":"Add support for binary scim data type.","user":{"login":"Cephei","id":1054639,"avatar_url":"https://avatars.githubusercontent.com/u/1054639?v=3","gravatar_id":"","url":"https://api.github.com/users/Cephei","html_url":"https://github.com/Cephei","followers_url":"https://api.github.com/users/Cephei/followers","following_url":"https://api.github.com/users/Cephei/following{/other_user}","gists_url":"https://api.github.com/users/Cephei/gists{/gist_id}","starred_url":"https://api.github.com/users/Cephei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cephei/subscriptions","organizations_url":"https://api.github.com/users/Cephei/orgs","repos_url":"https://api.github.com/users/Cephei/repos","events_url":"https://api.github.com/users/Cephei/events{/privacy}","received_events_url":"https://api.github.com/users/Cephei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-16T12:49:17Z","updated_at":"2016-04-16T12:49:17Z","closed_at":null,"body":"My initial hunch would be to create a custom data type or custom json converter to handle `Byte[]` or `Stream` <-> `string` (base64) conversion since the binary data must be represented as a base 64 string as per SCIM.\r\n\r\nThe tricky part is on deserialization, the serializer or converter must have a reference to the `ScimTypeAttributeDefinition` to know the string is binary data and not a normal string.\r\n\r\nThat being said, this is all due to having the desire to use static typing to represent each SCIM data type.  \r\nInstead of:\r\n```\r\n{\r\n  public string UserName {get; set;}\r\n  public string ProfilePicture {get; set;}\r\n}\r\n```\r\nIt would be:\r\n```\r\n{\r\n  public string UserName {get; set;}\r\n  public byte[] ProfilePicture {get; set;}\r\n}\r\n```\r\n\r\nIs this even desirable? My initial thinking would be to support lazy serialization for `Stream` data types."}}