<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Load file content and filename into database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304759#M76496</link>
    <description>thank you Talend team!&lt;BR /&gt;the article is about inserting a blob in the database, but how to download a blob from db to a specified filepath?&lt;BR /&gt;thanks and regards!</description>
    <pubDate>Thu, 28 May 2015 00:26:20 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-05-28T00:26:20Z</dc:date>
    <item>
      <title>Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304754#M76491</link>
      <description>&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;I am currently trying to use talend to load all text files contained in a directory into an Oracle database.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;I want to load the complete content of each of these files into one field, therefor tFileInputRaw seems best suited for me.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Additionally I need to load the source file name into a second column. Can anybody help me on how to achieve this?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;The destination table was created with following query:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;CREATE TABLE message_table (message CLOB, filename VARCHAR(256));&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304754#M76491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304755#M76492</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;Take a look at this KB 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513201" target="_blank" rel="nofollow noopener noreferrer"&gt;article&lt;/A&gt;, it shows how to iterate all files in a directory and insert them into database.&amp;nbsp;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 19 May 2015 13:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304755#M76492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T13:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304756#M76493</link>
      <description>Thank you.
&lt;BR /&gt;The second part of my question is, how do I load the filename together with every filecontent into the database?</description>
      <pubDate>Tue, 19 May 2015 13:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304756#M76493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304757#M76494</link>
      <description>tFileList declares a global variable that stores the current file name, for example: 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE"))&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can get the current file name using this variable, so, add a new column and set its expression with this variable.&amp;nbsp; 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 19 May 2015 13:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304757#M76494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T13:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304758#M76495</link>
      <description>hi alrond, if all your raw files have similar columns then u could finish yor Job like this: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDjF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146029iF293CEB27DB5AD84/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDjF.png" alt="0683p000009MDjF.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDbc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149704i329F64B852F9AE5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDbc.png" alt="0683p000009MDbc.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDfT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149244iAC49B7F5CD6EC0D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDfT.png" alt="0683p000009MDfT.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;after, doing the above steps dump all this values into thashouput and do the post job as per the below job design: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDOc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143567iF336CE8110A88399/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDOc.png" alt="0683p000009MDOc.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;output will be : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDjK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131092iAEF40DDB2BAF2995/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDjK.png" alt="0683p000009MDjK.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 19 May 2015 16:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304758#M76495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-19T16:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304759#M76496</link>
      <description>thank you Talend team!&lt;BR /&gt;the article is about inserting a blob in the database, but how to download a blob from db to a specified filepath?&lt;BR /&gt;thanks and regards!</description>
      <pubDate>Thu, 28 May 2015 00:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304759#M76496</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-05-28T00:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304760#M76497</link>
      <description>nevermind partners!&lt;BR /&gt;I found it in ""</description>
      <pubDate>Thu, 28 May 2015 00:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304760#M76497</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-05-28T00:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304761#M76498</link>
      <description>Thank you so much for posting this.
&lt;BR /&gt;A question if I may and I apologize if my post is bumping an old thread, but this is really a agood place to finish what I am trying to do.
&lt;BR /&gt;&amp;nbsp;The files I am trying to joinn are named in a pattern xxx_yyyy_zzzz and sometimes xxxx_yyyy_zzzz.
&lt;BR /&gt;All I want to do is except of having the full name is adding the xxx or xxxx before the first underscore. I am aware that all I have to do is change the expression. But I am such a novice and I really apreciate any help.
&lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 24 Aug 2016 12:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304761#M76498</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-08-24T12:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304762#M76499</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Thank you so much for posting this.&lt;BR /&gt;A question if I may and I apologize if my post is bumping an old thread, but this is really a a good place to finish what I am trying to do.&lt;BR /&gt;&amp;nbsp;The files I am trying to joinn are named in a pattern xxx_yyyy_zzzz and sometimes xxxx_yyyy_zzzz.&lt;BR /&gt;All I want to do is except of having the full name is adding the xxx or xxxx before the first underscore. I am aware that all I have to do is change the expression. But I am such a novice and I really appreciate any help.&lt;BR /&gt;Thank you.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi &amp;nbsp; 
&lt;BR /&gt;Can you please describe your requirement with more details in a new topic? I don't understand what you want to do... 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 25 Aug 2016 10:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304762#M76499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-25T10:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load file content and filename into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304763#M76500</link>
      <description>&lt;P&gt;the link to the article is not working, can you please correct this?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 10:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-file-content-and-filename-into-database/m-p/2304763#M76500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-11T10:50:05Z</dc:date>
    </item>
  </channel>
</rss>

