<?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: send file with tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274505#M51163</link>
    <description>&lt;P&gt;akumar,&lt;/P&gt; 
&lt;P&gt;Thanks for the answer, but the link&amp;nbsp;&lt;A href="http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/&lt;/A&gt;&amp;nbsp;isn't working&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My issue is that i have to send data in the same time i need to send the file. I tried to not putting them, it works with a POSTMAN but not in Talend and i don't know why. I tried to put them in the "Parameters" section of the tFileFecth, always getting this message :&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;There isContinue_tFileFetch_1 an exception on: MY_API&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.lang.Exception: Method failed: HTTP/1.1 201 Created&lt;/FONT&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="tfilefetch config" style="width: 923px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZrg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137122iE135919A3412F4B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZrg.jpg" alt="0683p000009MZrg.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tfilefetch config&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the &amp;quot;same&amp;quot; on POSTMAN" style="width: 983px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZrl.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133816i22FEC40E210002AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZrl.jpg" alt="0683p000009MZrl.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the "same" on POSTMAN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 16:27:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-08T16:27:57Z</dc:date>
    <item>
      <title>send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274500#M51158</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;I'm retreiving a file in base64 from a route and trying to send it to an API through the component tRestClient. I convert the base64 into a file without any issue but i struggle to send it on the API&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't understand how to use it. I tried to put the complete path of the file into a query parameter with no success.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is what i've done :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the job" style="width: 782px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaFx.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143459i4BBF89CA7F1AA692/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaFx.jpg" alt="0683p000009MaFx.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the job&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tRest config" style="width: 874px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaG2.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130117i88BCAEC63F26DA1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaG2.jpg" alt="0683p000009MaG2.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tRest config&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I'm really not sure how to do it. I can't use a tFileFetch because my API is waiting for 3 parameters: file, type and fileName&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="API.jpg" style="width: 212px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaG7.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147983i77A68C5B9E6AE514/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaG7.jpg" alt="0683p000009MaG7.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I'm used to send body messages with JSON but i don't understand how use it to send a file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274500#M51158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274501#M51159</link>
      <description>&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;If a file data needs to be passed to trestclient as query parameter then the string has to be created with all the columns of file in json format as we have string&amp;nbsp; column in output schema. Also body column needs to be created with documnet type as the below screenshot.&lt;/FONT&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="1.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaG3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154647i7057D0E546192845/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaG3.png" alt="0683p000009MaG3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Then pass the result to restclient and refer below screenshot for your reference&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZmi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136766i84E02EBDB45D2E69/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZmi.png" alt="0683p000009MZmi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;The schema of response has to be configured as given above&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="times new roman,times"&gt;BhavikaW&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 17:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274501#M51159</guid>
      <dc:creator>BhavikaW</dc:creator>
      <dc:date>2020-05-27T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274502#M51160</link>
      <description>&lt;P&gt;Hi Bhavika,&lt;/P&gt; 
&lt;P&gt;Thanks for the reply but I'm trying to send a PDF so i can't read it &lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://community.qlik.com/" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 08:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274502#M51160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T08:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274503#M51161</link>
      <description>Try tfilefetch with “Upload file” option</description>
      <pubDate>Thu, 28 May 2020 21:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274503#M51161</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-05-28T21:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274504#M51162</link>
      <description>&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrgsCAC" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Uploading-a-file-to-tREST-API/td-p/51928&lt;/A&gt;</description>
      <pubDate>Thu, 28 May 2020 21:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274504#M51162</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-05-28T21:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274505#M51163</link>
      <description>&lt;P&gt;akumar,&lt;/P&gt; 
&lt;P&gt;Thanks for the answer, but the link&amp;nbsp;&lt;A href="http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;http://talend.nl/talend-tech-tip-calling-a-rest-service-for-file-upload/&lt;/A&gt;&amp;nbsp;isn't working&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My issue is that i have to send data in the same time i need to send the file. I tried to not putting them, it works with a POSTMAN but not in Talend and i don't know why. I tried to put them in the "Parameters" section of the tFileFecth, always getting this message :&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;There isContinue_tFileFetch_1 an exception on: MY_API&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.lang.Exception: Method failed: HTTP/1.1 201 Created&lt;/FONT&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="tfilefetch config" style="width: 923px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZrg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137122iE135919A3412F4B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZrg.jpg" alt="0683p000009MZrg.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tfilefetch config&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the &amp;quot;same&amp;quot; on POSTMAN" style="width: 983px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZrl.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133816i22FEC40E210002AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZrl.jpg" alt="0683p000009MZrl.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the "same" on POSTMAN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 16:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274505#M51163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-08T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: send file with tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274506#M51164</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I finally succeeded by modifying the component tFileFetch.&lt;/P&gt; 
&lt;P&gt;The API was sending me a 201 response so i had to modify the code of the component to accept this code as a valid response:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;status_&amp;lt;%=cid%&amp;gt; == org.apache.commons.httpclient.HttpStatus.SC_OK&amp;lt;%= scaccepted_uploadfile%&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;became&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;status_&amp;lt;%=cid%&amp;gt; == org.apache.commons.httpclient.HttpStatus.SC_OK&amp;lt;%= scaccepted_uploadfile%&amp;gt; || status_&amp;lt;%=cid%&amp;gt; == org.apache.commons.httpclient.HttpStatus.SC_CREATED&amp;lt;%= scaccepted_uploadfile%&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;I have now a new issue related to "Method failed: HTTP/1.1 413 Request Entity Too Large"&lt;/P&gt; 
&lt;P&gt;But not related directly to that topic&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 11:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/send-file-with-tRestClient/m-p/2274506#M51164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T11:02:13Z</dc:date>
    </item>
  </channel>
</rss>

