How can you read select few files from a tar file in s3 without having to download the tar?

402 Views Asked by At

You do not want to download the tar file. Just download select few files inside the tar.

Does s3 provide any API to do this or is Apache Commons Compress my best bet?

1

There are 1 best solutions below

0
On

While you'll be able to stream the file from S3 you'll still basically download it. The Apache Commons Compress library will help hide some of this and is a good solution. The other option would be to store the individual files in the tar file so that they can be randomly accessed.