如何使用talend下载文件(图像,pdf,......) [英] How to downlaod a file (image, pdf,......) using talend

查看:194
本文介绍了如何使用talend下载文件(图像,pdf,......)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将文件(附件)从FTP服务器迁移到另一台服务器(Salesforce),为此,我将使用talend.我不知道要使用哪些组件以及以什么顺序下载文件(多种格式,但可以通过http链接下载)并将其插入到salesforce数据库中,如果有人向我解释了如何进行操作,我将不胜感激(使用哪些组件以及如何关联它们?

I want to migrate Files (Attachments) from a FTP server to another server (Salesforce), to do that i am going to use talend. i have no clue which components to use and in which order in order to download the files (multiple formats but downloadable via a http link), and to insert them into salesforce database, i will be grateful if someone explains to me how to proceed (what are the components to use and how to relate them) ?

推荐答案

基于提供的信息,首先您将从远程服务器上获取文件,然后将其作为BLOB加载到数据库中.

Based on the info provided, first you will obtain the files from the remote server, then load them as a BLOB into a database.

有关典型的FTP流,请参见该图.第一个组件是与服务器的连接,该连接允许连接重用.第二个组件是可选的,它使您可以在操作之前获取文件计数(以后可以使用它来确保检索到所有文件).从技术上讲,第三个组件(tFTPGet)就是您所需要的.该组件实际上根据您设置的文件掩码获取文件.最后的组件tFTPDelete清理远程目录.

See the diagram for a typical FTP flow. The first component is a connection to the server which allows connection reuse. The second component is optional, it allows you to get a count of file prior to your operations (you can use it later to make sure you retrieved all the files). The third component (tFTPGet) is technically all you need. This component actually grabs the files based on the file mask you set. The final component tFTPDelete cleans up the remote directory.

在本地拥有文件后,请参见

Once you have the files locally see this help link for information on how to insert files as BLOBs into a database. You will have to tweak it for your SalesForce db.

这篇关于如何使用talend下载文件(图像,pdf,......)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆