Support Questions

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

UnpackContent "txt.gz"

avatar
New Contributor

Hello everyone,

I would like to ask you is there any option how to unpack file txt.gz file in Apache Nifi flow.

 

To explain my needs:

I have simple flow to Get file from FTP and then import file content in to oracle DB.

Unfortunately generated file on FTP is compressed gz file "REPORT_20210726191211.txt.gz".

Is there any posibility how i can process this file ?

 

Thank you for any respond.

1 REPLY 1

avatar
Super Mentor

@ToTew 

 

Have you tried using the CompressContent [1] processor?

This processor can be configured with "Mode" set to "decompress" and "Compression Format" set to "gzip".

 

[1] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.14.0/org.apach...

If you found this response addressed your query, please take a moment to login and click on "Accept as Solution" below this post.

 

Than you,

Matt