AnsweredAssumed Answered

gunzip a file in Boomi?

Question asked by SaiKumarGoud Mallari on Mar 13, 2018

I'm using Data process shape with groovy script to gunzip files.But it says "Error executing data process; Caused by: Not in GZIP format (in groovy script); Caused by: Not in GZIP format"

Groovy Scripe Used :

import java.util.Properties;

for( int i = 0; i < dataContext.getDataCount(); i++ )
InputStream is = dataContext.getStream(i);
GZIPInputStream gin = new GZIPInputStream(is);
Properties props = dataContext.getProperties(i);
dataContext.storeStream(gin, props);
Do we need to import any library files into local atom ? I also tried this with Cloud atom -it shows up same error even with cloud atom.
Any inputs please?