# Downloading zip file of a csv, from S3 bucket using Akka and Alpakka streams

**URL:** <https://discuss.akka.io/t/downloading-zip-file-of-a-csv-from-s3-bucket-using-akka-and-alpakka-streams/9009>\
**Category:** Akka Streams & Alpakka\
**Created:** [November 4, 2021, 3:54pm UTC](https://discuss.akka.io/t/downloading-zip-file-of-a-csv-from-s3-bucket-using-akka-and-alpakka-streams/9009 "2021-11-04T15:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![animgr](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/animgr/32/2654_2.png) [@animgr](https://discuss.akka.io/u/animgr)\
**Post date:** [November 4, 2021, 3:54pm UTC](https://discuss.akka.io/t/downloading-zip-file-of-a-csv-from-s3-bucket-using-akka-and-alpakka-streams/9009/1 "2021-11-04T15:54:10Z")

</div>

I am having an issue for downloading S3 bucket content, which is for now a single zip file, unzip it and have it in memory. I couldn’t find relevant information, but I know I shall do something similar to this. (If zip format and unzipping is supported)

```scala
        S3.download(bucket, key) 
          .log("started download")
          .withAttributes(attrs) //my non-default alpakka s3 connector values
          .runWith(Sink.head)

```

I am not sure how to get the stream, unzip it and have the csv file in the memory. Would appreciate the help.
