Upload with compression using lib-storage #4550
-
I am using Using the standard Node tools to do this, I did not find an easy and clean way to compress the data before sending it to S3. Would be great if we could pass a custom transform stream in the Would you have any better suggestion here? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @drochgenius, thanks for opening this discussion. Unfortunately there is not a built-in functionality in the AWS SDK for JavaScript V3 for compressing. You may need to compress your files before they are provided as body to upload to S3. However, you need to know that if you compress your file before is stored, then it will be stored as so, which means you may need to also handle the decompression when you need to work on the original file "without being compressed". Thanks! |
Beta Was this translation helpful? Give feedback.
-
Makes sense, thanks for your answer. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @drochgenius, thanks for opening this discussion. Unfortunately there is not a built-in functionality in the AWS SDK for JavaScript V3 for compressing. You may need to compress your files before they are provided as body to upload to S3. However, you need to know that if you compress your file before is stored, then it will be stored as so, which means you may need to also handle the decompression when you need to work on the original file "without being compressed".
Thanks!