Hi,
Does FME support direct reading from other package formats apart from ZIP ?
Cheers
Hi,
Does FME support direct reading from other package formats apart from ZIP ?
Cheers
Hi @lifalin2016
I don't think there are other formats available right now. But of course you can easily implement this functionality yourself with the SysCaller and 7-zip:
https://sevenzip.osdn.jp/chm/cmdline/syntax.htm
Use the SystemCaller transformer (calling either a batch file or an executable) or use the PythonCaller for this after writing with the new (2016) FeatureWriter.
Another option is using the "Python script after shutdown" option in the Navigator panel.
Yes using 7z via FME is easly done and works like a charm
Yes using 7z via FME is easly done and works like a charm
So for example to do this: 7z e archive.zip
you need to find out what is the complete path to the 7z.exe (c:\\7z\\7z.exe for example) and be sure to use quotes just incase the path contains spaces
The same goes for the result location (archive.zip) you can specify a specific location (c:\\temp) otherwise it will extract to the current directory.
So for example to do this: 7z e archive.zip
you need to find out what is the complete path to the 7z.exe (c:\\7z\\7z.exe for example) and be sure to use quotes just incase the path contains spaces
The same goes for the result location (archive.zip) you can specify a specific location (c:\\temp) otherwise it will extract to the current directory.
Now I know how to start as comandline and systemcaller are not my thing YET:) I'll test it tomorrow and let you know.
Now I know how to start as comandline and systemcaller are not my thing YET:) I'll test it tomorrow and let you know.
Note that we are looking at extending FME's native compressor/decompressor to handle .gz, .bz2, .rar, and 7zip. Please chime in over at https://knowledge.safe.com/idea/18871/7-zip-compress-all-data-to-other-formats.html with your requirements and desires to this end.