Fork me on GitHub
#clojure-india
<
2017-04-13
>
niten.sagar09:04:52

Does anyone know how to open compressed zip file in clojure?

Shantanu Kumar09:04:20

@niten.sagar How about the command jar xvf the-zip-file.zip? 😛

Shantanu Kumar09:04:46

On a serious note, you can use the ZipInputStream via Java interop - http://stackoverflow.com/a/10188601/188505

niten.sagar10:04:07

@kumarshantanu i have try using ZipInputStream as explained in stackoverflow article but its giving NullPointerException i know there is a multiple csv files compress in a zip folder my zip folder looks something like this 2017-04-09-11-00-events.csv.zip

Shantanu Kumar11:04:07

@niten.sagar You should probably print out the ZIP entry filenames to ascertain that your program is encountering the filenames you know exist in the ZIP file

Shantanu Kumar11:04:38

the stack trace in NullPointerException will tell you the exact point where it encountered an unexpected nil