Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1987

How to upload a compressed file (.gz) to the swift object storage using Python swift client?

$
0
0
I wrote the Python code to upload the .gz file from my local machine to the OpenStack object storage.

The file gets uploaded successfully. However, when I tried to compress the file after downloading it from the object storage using the Swift commands (I cannot ssh to the object storage instance apart from using Swift commands), I got some errors instead and was not able to decompress the file.

How can I fix this bug in the code to ensure the file gets uploaded in the same format and size...

How to upload a compressed file (.gz) to the swift object storage using Python swift client?

Viewing all articles
Browse latest Browse all 1987

Trending Articles