tfilefetch with ftp protocol and authentication

One Star

tfilefetch with ftp protocol and authentication

Hello Talend users.
I need to get a single xml file from a ftp server, i think tfilefetch fits my needs because it is not neccesary to download the file, just to get the content for later use as a lookup table (see "use cache to save the resource"). 
But i have been unable to figure out how to set host, username and password in tfilefetch component, if you choose the "http" protocol, you can set those settings, but i need to set them for the "ftp" protocol. 
Any help will be much appreciated.  
Regards
Juan
Moderator

Re: tfilefetch with ftp protocol and authentication

Hi,
So far, tfilefetch component is used to retrieve a file via a defined protocol(http, https, ftp, smb).
Have you tried to use component tFTPGet to retrieve your selected file from remote FTP directory and copy them to a local directory?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tfilefetch with ftp protocol and authentication

Yes, sure i can use a tFTPGet, but some features of tFileFetch seemed very attractive, ie. the ability to store the contents in a cache, and i just need to get the contents of a single file, just the content, no need to download the file. 
Moderator

Re: tfilefetch with ftp protocol and authentication

Hi,
You can take a try on ftp protocol and set a ftp URL format.

ftp:/xxx:xxxx

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tfilefetch with ftp protocol and authentication

Hello.
I finally figured out how to accomplish the task, if you use the ftp protocol with tFileFetch the URI must have the following format: 
ftp://userSmiley Tongueass@www.myserver.com/project/2012/Project.zip
The component is very rigid so be careful if you want to append name=value pairs separated by "&".
regards.
Moderator

Re: tfilefetch with ftp protocol and authentication

Hi jcalfucura,
Thanks for your suggestion and solution. It's really helpful.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.