How to unzip a .gz file

One Star

How to unzip a .gz file

Hi,
I am wondering which component I can use for the following scenario:
1) Download testing.txt.gz from http://server.com
2) Unzip the testing.txt.gz to testing.txt which is tab delimited format
Any help is really appreciated! I want to know which component I can use to download a .gz file from http://server.com, unzip it to a tab delimited format for ETL processing.
Thanks in advance!
One Star

Re: How to unzip a .gz file

Hi,
I have used 7zip to extraxt GZIP Files and called 7zip it with tSystem.
regards
Hannes
Community Manager

Re: How to unzip a .gz file

Hello
1) Try the tFileFetch component.
2) Junitiedt's solution is a good idea.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to unzip a .gz file

Hi klmc
You can use tFileUnarchive to unzip the file once you have fetched it.
Regards,
Rick
One Star

Re: How to unzip a .gz file

Thanks all for your help!!! I tried to use tFileFetch component; if the file doesn't exist, it throws an exception error HTTP/1.1 404, is there a way to specify if the file doesn't exist, don't throw an exception error.
Community Manager

Re: How to unzip a .gz file

Hello
is there a way to specify if the file doesn't exist, don't throw an exception error.

Uncheck the box 'die on error'.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business