Skip to main content
Question

Support for other packages formats than ZIP ?

  • February 15, 2017
  • 8 replies
  • 11 views

lifalin2016
Contributor
Forum|alt.badge.img+29

Hi,

Does FME support direct reading from other package formats apart from ZIP ?

Cheers

8 replies

Forum|alt.badge.img+7

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


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 15, 2017

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.


itay
Supporter
Forum|alt.badge.img+16
  • Supporter
  • February 15, 2017

Yes using 7z via FME is easly done and works like a charm


  • February 20, 2017
itay wrote:

Yes using 7z via FME is easly done and works like a charm

hi, could you please elaborate more on how to use it? I'm straggling to get 7z readed

 

 


itay
Supporter
Forum|alt.badge.img+16
  • Supporter
  • February 20, 2017
olga wrote:
hi, could you please elaborate more on how to use it? I'm straggling to get 7z readed

 

 

Sure, Its a matter of extracting the zip file by using the e command (https://sevenzip.osdn.jp/chm/cmdline/commands/extract.htm) in a systemcaller transformer, after that its a matter of reading the extracted files with a FeatureReader and continuing the transformation.

 

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.

 

 


  • February 20, 2017
itay wrote:
Sure, Its a matter of extracting the zip file by using the e command (https://sevenzip.osdn.jp/chm/cmdline/commands/extract.htm) in a systemcaller transformer, after that its a matter of reading the extracted files with a FeatureReader and continuing the transformation.

 

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.

 

 

'Thanks a lot Itay!

 

Now I know how to start as comandline and systemcaller are not my thing YET:) I'll test it tomorrow and let you know.

 

 


itay
Supporter
Forum|alt.badge.img+16
  • Supporter
  • February 20, 2017
olga wrote:
'Thanks a lot Itay!

 

Now I know how to start as comandline and systemcaller are not my thing YET:) I'll test it tomorrow and let you know.

 

 

Thumb up....for future reference it is better to start a new discussion and mention the old one in it, then the other way around.

 

 


fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 25, 2017

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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings