span8
span4
span8
span4
Hi,
My customers upload .zip or .tar.gz files to our server,I have a CSV reader,when I set the url (https://mydomain.com/customer1.zip) of a zip file with only 1 file,FME server works fine.
Now,a customer send us .tar.gz files with several files in it,for this spacific workspace I need to grab only one file form the package,there is a way to specify which will be the file in the url to process?I tried withhttps://mydomain.com/customer2.tar.gzstudents.txtwith no luck,I manually convert to a zip filehttps://mydomain.com/customer2.zipstudents.txtbut nothing works.
Thanks
VictorV
I agree with@stalknechtof using HTTPCaller in this case.Since you are looking for using same parameter for local and remote files,you can use a 亚搏在线workflow as depicted in the attached workspace template.
In this 亚搏在线workflow,source file path (local or remote) should be passed through 'Source' Published Parameter and the first Tester identifies and divert remote paths to download the zip/gz file before passing it to FeatureReader.This workspace works on both FME Desktop and FME Server.
Alternatively,you can think of writing a Startup Python script to do this.
Regards,Priyantha Pallegama
Hi Victor you should use a slash instead of a "."
CSV reader: Failed to open file 'https://mydomain.com/customer2.tar.gz/students.txt' for reading.Please ensure that the file exists and you have sufficient privileges to read it
© 2019 亚搏在线Safe Software Inc |Legal