googleapis / nodejs-storage

Node.js client for Google Cloud Storage: unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.
https://cloud.google.com/storage/
Apache License 2.0
896 stars 370 forks source link

combining gzipped files #2430

Closed zuozp8 closed 5 months ago

zuozp8 commented 6 months ago

I have few processes uploading parts of a big json-lines file and I upload them compressed, as described in transparent encoding. After those partial uploads I'm combining the file into the final big compressed file, and I would like to set the metadata.contentEncoding during the /compose request.

Concatenated gzip files creates valid gzip file; I verified that if I add content encoding manually to combined file then the decompressive transcoding works as intended.

I'll provide pull-request