# Extract a ZipFile

**URL:** https://discourse.julialang.org/t/extract-a-zipfile/53577
**Category:** New to Julia
**Tags:** question, first-steps
**Created:** [January 19, 2021, 2:29am UTC](https://discourse.julialang.org/t/extract-a-zipfile/53577 "2021-01-19T02:29:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Rodrigo\_Roa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rodrigo_roa/32/21114_2.png) [@Rodrigo\_Roa](https://discourse.julialang.org/u/Rodrigo_Roa)
#### Post date: [January 19, 2021, 2:29am UTC](https://discourse.julialang.org/t/extract-a-zipfile/53577/1 "2021-01-19T02:29:38Z")

</div>

I am new to Juilia, and i’m doing a project that needs download free-access files, but they are in ZIP format, and i wanna know how extract them, because when i tried to do it whit the ZipFile.Reader function it throws me ArgumentError: Invalid utf8 string: UInt8.

also if you can tell me the best option to download files it would help me a lot.

---

<div class="post-metadata">

### Author: ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)
#### Post date: [January 19, 2021, 3:11am UTC](https://discourse.julialang.org/t/extract-a-zipfile/53577/2 "2021-01-19T03:11:56Z")

</div>

I use ZipFile.jl for this, so perhaps you should give that another look. Have you tried a simple test file?

---

<div class="post-metadata">

### Author: ![Rodrigo\_Roa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rodrigo_roa/32/21114_2.png) [@Rodrigo\_Roa](https://discourse.julialang.org/u/Rodrigo_Roa)
#### Post date: [January 19, 2021, 3:20am UTC](https://discourse.julialang.org/t/extract-a-zipfile/53577/3 "2021-01-19T03:20:24Z")

</div>

How can i do that?

---

<div class="post-metadata">

### Author: ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)
#### Post date: [January 19, 2021, 2:17pm UTC](https://discourse.julialang.org/t/extract-a-zipfile/53577/4 "2021-01-19T14:17:26Z")

</div>

Looking at the ZipFile package `Reader` has 3 forms:

```julia
Reader(io::IO, close_io::Bool)
Reader(io::IO)
Reader(filename::AbstractString)

```

Are you trying to pass the contents of the file to it?

---

<div class="post-metadata">

### Author: ![Rodrigo\_Roa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rodrigo_roa/32/21114_2.png) [@Rodrigo\_Roa](https://discourse.julialang.org/u/Rodrigo_Roa)
#### Post date: [January 19, 2021, 8:07pm UTC](https://discourse.julialang.org/t/extract-a-zipfile/53577/5 "2021-01-19T20:07:17Z")

</div>

i tried with the filename, but now i’m using the InfoZIp package
