{"action":"opened","issue":{"url":"https://api.github.com/repos/nmrugg/LZMA-JS/issues/49","repository_url":"https://api.github.com/repos/nmrugg/LZMA-JS","labels_url":"https://api.github.com/repos/nmrugg/LZMA-JS/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/nmrugg/LZMA-JS/issues/49/comments","events_url":"https://api.github.com/repos/nmrugg/LZMA-JS/issues/49/events","html_url":"https://github.com/nmrugg/LZMA-JS/issues/49","id":163595332,"number":49,"title":"Base64/Vanilla Strings","user":{"login":"backspaces","id":124366,"avatar_url":"https://avatars.githubusercontent.com/u/124366?v=3","gravatar_id":"","url":"https://api.github.com/users/backspaces","html_url":"https://github.com/backspaces","followers_url":"https://api.github.com/users/backspaces/followers","following_url":"https://api.github.com/users/backspaces/following{/other_user}","gists_url":"https://api.github.com/users/backspaces/gists{/gist_id}","starred_url":"https://api.github.com/users/backspaces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backspaces/subscriptions","organizations_url":"https://api.github.com/users/backspaces/orgs","repos_url":"https://api.github.com/users/backspaces/repos","events_url":"https://api.github.com/users/backspaces/events{/privacy}","received_events_url":"https://api.github.com/users/backspaces/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-04T02:58:17Z","updated_at":"2016-07-04T02:58:17Z","closed_at":null,"body":"I've got a two-stage compression/decompression requirement:\r\n1 - First, compress binary Array/Uint8Array data. This compresses to JS Arrays of signed bytes which I convert to Uint8s. (I can use signed Int8s but that seems to give the same results in terms of the Array Buffer).\r\n2 - Convert this to a base64 string for using in JSON and distributed networking .. see:\r\nhttps://coolaj86.com/articles/typedarray-buffer-to-base64-in-javascript/\r\n3 - For even better compression, I compress the base64. But unfortunately, this creates an Array, not a string. Is there an option for this to create a string? Or is there a good conversion from a byte array to a string?\r\n\r\nI guess I'm asking for string input and output of compress/decompress. This could be silly, but it seems useful in this case.\r\n\r\nThanks!"}}
{"actor":{"display_login":"backspaces"}}