cancel
Showing results for 
Search instead for 
Did you mean: 

Decompressing and reading WINDOWS zip files

Bhavin
Former Employee

Here is a pipeline that reads a .zip file, decompresses (unzips) it and parses it contents.
Please note that our current “Decompress” Snap only supports BZIP2, GZIP and DEFLATE.

e91db0c9cc0936a2e13ec5e189bae33e6e981737.jpg

Binary to Document Snap Encode or Decode property is set to NONE
28fdab16e114e4f2cbf0ce8d1b6aeb5b31662991.png
Mapper configuration
e515227a6024c447a53682ae441d394909326de7.png
Zip file read Snap configuration
a69344b69c69da2fc4b215ba614a9af60d416f08.png

This will return a binary stream and based on content-type, in this case we have an Excel xls file so we snap-in Excel Parser.

Pipeline is attached, you need to pass zip file to read

BK new pipeline 0_2017_02_21.slp (6.3 KB)

3 REPLIES 3

walkerline117
Contributor

if a password is required to unzip the zip file, how would that work in Snaplogic to unzip it?

I am trying to Unzip a Z file that uses UNIX Z Compression and not successful at using any of the DECOMPRESS snap scheme methods available. Could you help … please?

tharunm
New Contributor II

Have you tried reading a zip file and the contents inside a subfloders as well?
and what with one or some of those subfolders are again a zip file…?