{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/813","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-android","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/813/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/813/events","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/813","id":141617492,"number":813,"title":"GZip attachments in Android","user":{"login":"jayminraval","id":4501103,"avatar_url":"https://avatars.githubusercontent.com/u/4501103?v=3","gravatar_id":"","url":"https://api.github.com/users/jayminraval","html_url":"https://github.com/jayminraval","followers_url":"https://api.github.com/users/jayminraval/followers","following_url":"https://api.github.com/users/jayminraval/following{/other_user}","gists_url":"https://api.github.com/users/jayminraval/gists{/gist_id}","starred_url":"https://api.github.com/users/jayminraval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayminraval/subscriptions","organizations_url":"https://api.github.com/users/jayminraval/orgs","repos_url":"https://api.github.com/users/jayminraval/repos","events_url":"https://api.github.com/users/jayminraval/events{/privacy}","received_events_url":"https://api.github.com/users/jayminraval/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/review","name":"review","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/waffle:backlog","name":"waffle:backlog","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/milestones/17","html_url":"https://github.com/couchbase/couchbase-lite-android/milestones/1.5","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/milestones/17/labels","id":1846143,"number":17,"title":"1.5","description":"Place holder for post 1.3.0","creator":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":4,"state":"open","created_at":"2016-06-23T20:39:41Z","updated_at":"2016-09-16T00:35:33Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-17T15:31:03Z","updated_at":"2016-09-16T11:30:40Z","closed_at":null,"body":"I am trying to store a long json string in gzipped form in an attachment (not storing in document for memory efficiency). I have a unit test to check the GZip compression / decompression code that I have and verified that it works. Now, the problem is that when I save the gzip compressed byte info in the attachment and then retrieve the content later on, the GZip decompression fails with error - \r\n`java.io.IOException: unknown format (magic number 7b5b)`\r\nThis means that somehow the byte data that is saved in the attachment, is modified by Couchbase internally, but not sure why would it do so. \r\nSome more info on how info is being saved - \r\n`unsavedRevision.setAttachment(attachmentName, \"application/json\", gzipInputStream);`\r\n\r\nAny pointers to what might be going wrong? Is gzip for attachments enabled as a setting on the Android client? or do we have to explicitly gzip compress the attachment data?\r\n\r\nUsing couchbase lite 1.2.0"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/comments/247578539","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/813#issuecomment-247578539","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/813","id":247578539,"user":{"login":"tinderangler","id":5930326,"avatar_url":"https://avatars.githubusercontent.com/u/5930326?v=3","gravatar_id":"","url":"https://api.github.com/users/tinderangler","html_url":"https://github.com/tinderangler","followers_url":"https://api.github.com/users/tinderangler/followers","following_url":"https://api.github.com/users/tinderangler/following{/other_user}","gists_url":"https://api.github.com/users/tinderangler/gists{/gist_id}","starred_url":"https://api.github.com/users/tinderangler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinderangler/subscriptions","organizations_url":"https://api.github.com/users/tinderangler/orgs","repos_url":"https://api.github.com/users/tinderangler/repos","events_url":"https://api.github.com/users/tinderangler/events{/privacy}","received_events_url":"https://api.github.com/users/tinderangler/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T11:30:40Z","updated_at":"2016-09-16T11:30:40Z","body":"@hideki I didn't try that yet. What is the effect of it and how can I verify if it is working?\r\n\r\n@zgramana Only for certain ones"}}
{"actor":{"display_login":"tinderangler"}}