Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

NiFi Decompress Content after ListenHTTP

avatar
Master Guru

Here is my workflow

Data-->CompressContent(gzip, level 2) --> PostHTTP which post to the ListenHTTP endpoint

ListenHTTP-->CompressContent(gzip, level 2, for decompression) --> put file

For decompression i set compression format to gzip and level 2. However when I look at the file post decompression it is still compressed. any ideas?

By the way, I tested the CompressContent process by doing this

Data --> CompressContent(gzip, level 2) --> (forDemcompress)CompressContent(gzip, level 2), and in both stages it compresses the data and decompresses with success. This seems to be issue around ListenHTTP into CompressContent for decompression.

1 ACCEPTED SOLUTION

avatar
Master Guru

OK I found what i was doing wrong. The posthttp processor has a compressionLevel attribute. If you set this value to > 0 it will compress the content as gzip. So no reason to compress prior to using posthttp if you are using gzip

View solution in original post

1 REPLY 1

avatar
Master Guru

OK I found what i was doing wrong. The posthttp processor has a compressionLevel attribute. If you set this value to > 0 it will compress the content as gzip. So no reason to compress prior to using posthttp if you are using gzip