GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — add disableGzipContent option for create from InputStream by nblair · Pull Request #82 · googleapis/java-storage
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Conversation
Contributor
Is your feature request related to a problem? Please describe. I have a use case that necessitates using the Storage/Bucket write method variants with InputStream arguments. The inputs for my use case to store in Cloud Storage are:
Describe the solution you'd like Given that our content is already compressed, I would prefer to avoid spending the CPU time on compressing the content again en route to the Bucket. Describe alternatives you've considered We have used the
Additional context I have done some exploration and it appears that the values on the BlobWriteOption (used on Fixes #36; ported from googleapis/google-cloud-java#7057
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
nblair
force-pushed
the
blobwriteoption-disableGzipCompression
branch
from
375fdb3 to
d0ef86f
Compare
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #82 +/- ## ============================================ + Coverage 63.3% 63.32% +0.01% Complexity 528 528 ============================================ Files 30 30 Lines 4720 4722 +2 Branches 450 450 ============================================ + Hits 2988 2990 +2 Misses 1571 1571 Partials 161 161
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…s#36) Previously, only the methods to create blobs that take a byte[] argument offer the option to disable gzip compression; the methods that accept an InputStream argument do not. This is due to the BlobWriteOption enum missing a matching constant for BlobTargetOption.IF_DISABLE_GZIP_CONTENT. This change set adds a matching IF_DISABLE_GZIP_CONTENT constant to BlobWriteOption including the correct translation to StorageRpc.Option. The net result is that the Storage create functions that accept an InputStream now offer the option to disable gzip compression.
b84e5db to
183d0c6
Compare
|
Hi there! I'm curious if you have any feedback or questions on the idea and the approach? Thanks in advance! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Change LGTM, pending tests to finish and will merge. Thank you for your contribution @nblair! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for your time @frankyn - cheers! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Cloud Storage: provide option to disableGzipContent on InputStream variants
There was an error while loading. Please reload this page.