Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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