# How to extract zip file content in Jupyter Notebook

**URL:** <https://discourse.julialang.org/t/how-to-extract-zip-file-content-in-jupyter-notebook/114443>\
**Category:** Jupyter-Notebook\
**Created:** [May 19, 2024, 3:51am UTC](https://discourse.julialang.org/t/how-to-extract-zip-file-content-in-jupyter-notebook/114443 "2024-05-19T03:51:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShrutiD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shrutid/32/206761_2.png) [@ShrutiD](https://discourse.julialang.org/u/ShrutiD)\
**Post date:** [May 19, 2024, 3:51am UTC](https://discourse.julialang.org/t/how-to-extract-zip-file-content-in-jupyter-notebook/114443/1 "2024-05-19T03:51:30Z")

</div>

I’m trying to use the MNSIT dataset to train a network and needed to use the images that are in a _.zip_ file in the same directory. I tried to use `ZipFile` and `FilePathsBase` to extract the content from the .zip folder. However I get the following error “_no method matching ZipFile.Reader_”

Could someone please help me with how to proceed as I understand there is no direct way to upload a folder to a Jupyter Notebook.

Thanks

---

<div class="post-metadata">

**Author:** ![kimikage](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kimikage/32/14534_2.png) [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Post date:** [May 19, 2024, 6:47am UTC](https://discourse.julialang.org/t/how-to-extract-zip-file-content-in-jupyter-notebook/114443/2 "2024-05-19T06:47:49Z")

</div>

Did you read the entire error message?  
If you do not understand what it means, posting the entire message would be helpful in understanding the problem you are facing.

Perhaps the error message implies that the file path or data should be passed as a string (`<:AbstractString`) or an IO object.

FYI, we can also use ZipArchives.jl instead of ZipFile.jl for most use cases.

> **[GitHub - JuliaIO/ZipArchives.jl: Read and write Zip archive files in Julia.](https://github.com/JuliaIO/ZipArchives.jl?tab=readme-ov-file#related-packages)**
>
> Read and write Zip archive files in Julia. Contribute to JuliaIO/ZipArchives.jl development by creating an account on GitHub.
