{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/691","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/691/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/691/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/691","id":59368042,"number":691,"title":"Support for gzip media content on resumable media upload","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Component-Media","name":"Component-Media","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-01T00:10:50Z","updated_at":"2015-03-01T00:10:52Z","closed_at":null,"body":"```\nExternal references, such as a standards document, or specification?\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/1.12.0-beta/com/google/a\npi/client/googleapis/media/MediaHttpUploader.html\n\nJava environments (e.g. Java 6, Android 2.3, App Engine, or All)?\n\nAll\n\nPlease describe the feature requested.\n\nCurrently we do not gzip media content chunks on resumable media upload.  To be \nconsistent, we should gzip it.  In 1.13 we had to disable that functionality \nbecause the media content length wasn't being computed correctly.  So we should \nfix that.\n```\n\nOriginal issue reported on code.google.com by `yan...@google.com` on 20 Dec 2012 at 4:55"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76560239","html_url":"https://github.com/chrsmith/google-api-java-client/issues/691#issuecomment-76560239","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/691","id":76560239,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T00:10:51Z","updated_at":"2015-03-01T00:10:51Z","body":"```\nThe problem I am running into is (using example values):\n\nOriginal content length - 10000\nGzipped content length -   8000\nMinimum chunk size -       2000\n\nInitiation request says x-upload-content-length will be 8000\n\nWe start uploading a chunk of 2000 from the original content of 10000.\nThe chunk gets gzipped in HttpRequest and is now 1500.\n\nThis 1500 is below the minimum chunk length allowed and an exception is thrown.\n\nWe do not know what chunk size to use to get a gzipped chunk that is equal to \nthe specified chunk size.\n```\n\nOriginal comment by `rmis...@google.com` on 24 Jan 2013 at 6:35"}}