<?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: How to upload files using tREST? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359896#M124595</link>
    <description>You can use the tFileFetch component that allows you to download files, however in its advanced settings you can enable the "upload files" which then uploads the files. As a bonus it does it in a multi-part http post.
&lt;BR /&gt;
&lt;BR /&gt;See more: 
&lt;A href="https://help.talend.com/display/TalendComponentsReferenceGuide61EN/tFileFetch" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendComponentsReferenceGuide61EN/tFileFetch&lt;/A&gt;</description>
    <pubDate>Tue, 07 Aug 2018 14:00:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-07T14:00:23Z</dc:date>
    <item>
      <title>How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359889#M124588</link>
      <description>&lt;P&gt;I am trying to use tREST to upload/update files. I could use tFileFetch. But, that supports only POST, not GET and PUT.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I pass the filename in the body and also how to pass the username/password authentication credential (the Basic authentication)?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 22:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359889#M124588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-18T22:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359890#M124589</link>
      <description>&lt;P&gt;You can use a global variable "FileName" to store the filename and then in the body just do:&amp;nbsp;(String) globalMap.get("FileName")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use basic authentication add a HTTP Header as follow&lt;/P&gt;
&lt;P&gt;name: "Authorization"&lt;/P&gt;
&lt;P&gt;value: "Basic urlEncodedText"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The urlEncodedText would be [user]:[password] url encoded&lt;/P&gt;
&lt;P&gt;To get the encoded text you can run this java code in one of the online java sites as:&amp;nbsp;&lt;A href="https://www.compilejava.net/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.compilejava.net/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import java.util.Base64;&lt;BR /&gt;String str;&lt;BR /&gt;str = "[user]:[password]";&lt;BR /&gt;str = Base64.getUrlEncoder().encodeToString(str.getBytes());&lt;BR /&gt;System.out.println("encoded value is " + str);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 00:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359890#M124589</guid>
      <dc:creator>dbeltritti</dc:creator>
      <dc:date>2018-07-19T00:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359891#M124590</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-One-Star lia-component-message-view-widget-author-username"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eJ7tAAE" target="_self"&gt;dbeltritti&lt;/A&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-One-Star lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;I tried tREST with the settings as shown below. But its not working. Am I doing something wrong here?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-One-Star lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;I am trying to upload jpg images.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 957px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzJT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143500i553B038301A26C7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzJT.png" alt="0683p000009LzJT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 03:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359891#M124590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T03:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359892#M124591</link>
      <description>&lt;P&gt;That will post the file path, no the actual file content. Do you want to post the actual file through a rest service?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359892#M124591</guid>
      <dc:creator>dbeltritti</dc:creator>
      <dc:date>2018-07-19T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359893#M124592</link>
      <description>&lt;P&gt;Yes, I want to upload jpg files (want to use POST and PUT).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 17:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359893#M124592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359894#M124593</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The below article is calling REST service to load a png file. It will require some custom code but this should help you to perform your task to upload image files. Could you please try it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 18:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359894#M124593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T18:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359895#M124594</link>
      <description>&lt;P&gt;Nikhil, thanks for the suggestion. But this doesn't work for me. I followed the article, but it throws bunch of compilation errors even with the jars uploaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I mentioned before, I am able to upload file using "POST" in tFileFetch. Now, I also need file "PUT" option. Are there any other options to&amp;nbsp;accomplish that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 01:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359895#M124594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-06T01:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359896#M124595</link>
      <description>You can use the tFileFetch component that allows you to download files, however in its advanced settings you can enable the "upload files" which then uploads the files. As a bonus it does it in a multi-part http post.
&lt;BR /&gt;
&lt;BR /&gt;See more: 
&lt;A href="https://help.talend.com/display/TalendComponentsReferenceGuide61EN/tFileFetch" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendComponentsReferenceGuide61EN/tFileFetch&lt;/A&gt;</description>
      <pubDate>Tue, 07 Aug 2018 14:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359896#M124595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T14:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359897#M124596</link>
      <description>&lt;P&gt;thanks man.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 16:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359897#M124596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-07T16:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359898#M124597</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOenAAG"&gt;@francispandey&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am actually using tFileFetch to POST a file. That works fine. However, I also need option for "PUT" method. tFileFetch supports only POST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 18:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359898#M124597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-08T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359899#M124598</link>
      <description>Im like a cUrl evangelist for the majority of web integration stuff ... so try cUrl ... you may ask yourself why ... because of this... cookies, redirection, oAuth or other types of authentication, certificates , etc etc etc...
&lt;BR /&gt;Way more flexible!</description>
      <pubDate>Wed, 08 Aug 2018 21:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359899#M124598</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-08-08T21:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload files using tREST?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359900#M124599</link>
      <description>&lt;P&gt;This Site is down now. Can you share the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-files-using-tREST/m-p/2359900#M124599</guid>
      <dc:creator>vatsal_ras</dc:creator>
      <dc:date>2020-08-06T18:58:35Z</dc:date>
    </item>
  </channel>
</rss>

