<?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: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369819#M132930</link>
    <description>&lt;P&gt;Finally I did a bit of digging, I'm not java developper, but I managed to upload an image trought the PUT method with a tJava&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OAF28AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150394iDBECD6E22146191F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OAF28AAH.png" alt="0695b00000OAF28AAH.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the LibraryLoad :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;httpmime&lt;/LI&gt;&lt;LI&gt;commons-logging&lt;/LI&gt;&lt;LI&gt;httpcore&lt;/LI&gt;&lt;LI&gt;httpclient&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tJava (HttpGet) is a poc to test the imports and the get (source : https://mkyong.com/java/apache-httpclient-examples/)&lt;/P&gt;&lt;P&gt;The last tJava (HttpPut) is the thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basic settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OAF6AAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142845iBFE112C9F3244973/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OAF6AAAX.png" alt="0695b00000OAF6AAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OAF6ZAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143934iBA039874B698F410/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OAF6ZAAX.png" alt="0695b00000OAF6ZAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 15:07:06 GMT</pubDate>
    <dc:creator>powerchip</dc:creator>
    <dc:date>2022-02-08T15:07:06Z</dc:date>
    <item>
      <title>Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369813#M132924</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to upload a CSV File using HTTP PUT method. I'm using the tRestClient component, as recommended for deployment to Talend Runtime. As of now, I'm stuck with the HTTP 411 "Length Required" error.  Here is my job :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1drAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152166i8F7A7B1E66BF0833/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1drAAD.png" alt="0695b00000JO1drAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1dwAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145360iA676FDCA10DF427C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1dwAAD.png" alt="0695b00000JO1dwAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1e6AAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145643i9A344D70891E2480/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1e6AAD.png" alt="0695b00000JO1e6AAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1eGAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129422i95024558712F17DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1eGAAT.png" alt="0695b00000JO1eGAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1eaAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143341i20C5850403B3561A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1eaAAD.png" alt="0695b00000JO1eaAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1fnAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147296iBC71324955715F52/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1fnAAD.png" alt="0695b00000JO1fnAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000JO1iDAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135331i19D606D6FF967790/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000JO1iDAAT.png" alt="0695b00000JO1iDAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with Postman and the PUT request works successfully :&lt;/P&gt;&lt;P&gt;curl -L -X PUT [confidental url] -H 'Content-Type: text/plain' --data-binary '@/C:/Users/VO2GROUP/Documents/tmp/test_202109301856.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer to avoid using other components like tFileFetch &lt;/P&gt;&lt;P&gt;(apparently deprecated in studio version 7.3),&lt;/P&gt; tRest (unadvised for deployment to Talend Runtime &lt;P&gt;cf. &lt;A href="https://help.talend.com/r/fr-FR/7.3/rest/trest" target="_blank"&gt;https://help.talend.com/r/fr-FR/7.3/rest/trest&lt;/A&gt;)&lt;/P&gt; or thttprequest.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please have a solution using the tRestClient component, with PUT method, and a CSV input file to be uploaded ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369813#M132924</guid>
      <dc:creator>hamdi_bourbia</dc:creator>
      <dc:date>2024-11-15T23:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369814#M132925</link>
      <description>&lt;P&gt;in addition, the PUT method is not supported by the tFileFetch or tHttprequest components (studio v7.3).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 12:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369814#M132925</guid>
      <dc:creator>hamdi_bourbia</dc:creator>
      <dc:date>2021-10-04T12:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369815#M132926</link>
      <description>&lt;P&gt;here is the API documentation :&lt;/P&gt;&lt;P&gt;https://developers.files.com/#file-uploading&lt;/P&gt;&lt;P&gt;I'm currently stuck at step 2 (the PUT method to upload the file)&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 14:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369815#M132926</guid>
      <dc:creator>hamdi_bourbia</dc:creator>
      <dc:date>2021-10-04T14:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369816#M132927</link>
      <description>&lt;P&gt;updates on my latest trial, I have :&lt;/P&gt;&lt;P&gt;1/ changed the type of the input file to document (in tConvertType) and linked it to the body (instead of the string) of the PUT request (in tMap)&lt;/P&gt;&lt;P&gt;2/ changed the content type in the tRestClient to text/plain. Not in the header definition, but directly in the basic settings (I used Jobscript editor, the value is not natively supported, but it runs and that is what I have in Postman)&lt;/P&gt;&lt;P&gt;3/ also added the content type to text/plain in the header (tRestClient &amp;gt; advanced settings)&lt;/P&gt;&lt;P&gt;Could use a little help, please.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 09:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369816#M132927</guid>
      <dc:creator>hamdi_bourbia</dc:creator>
      <dc:date>2021-10-05T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369817#M132928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can someone help me please ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369817#M132928</guid>
      <dc:creator>hamdi_bourbia</dc:creator>
      <dc:date>2021-10-07T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369818#M132929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;did you manage to send a file with tRESTClient and the PUT method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked through the community but haven't found anything conclusive.&lt;/P&gt;&lt;P&gt;Since I have to send the file with the PUT method, I can't use tFileFetch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my side also works with Postman/CURL&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 10:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369818#M132929</guid>
      <dc:creator>powerchip</dc:creator>
      <dc:date>2022-02-08T10:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of a CSV File using tRestClient HTTP PUT method : HTTP 411 Length Required error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369819#M132930</link>
      <description>&lt;P&gt;Finally I did a bit of digging, I'm not java developper, but I managed to upload an image trought the PUT method with a tJava&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OAF28AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150394iDBECD6E22146191F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OAF28AAH.png" alt="0695b00000OAF28AAH.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the LibraryLoad :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;httpmime&lt;/LI&gt;&lt;LI&gt;commons-logging&lt;/LI&gt;&lt;LI&gt;httpcore&lt;/LI&gt;&lt;LI&gt;httpclient&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tJava (HttpGet) is a poc to test the imports and the get (source : https://mkyong.com/java/apache-httpclient-examples/)&lt;/P&gt;&lt;P&gt;The last tJava (HttpPut) is the thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basic settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OAF6AAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142845iBFE112C9F3244973/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OAF6AAAX.png" alt="0695b00000OAF6AAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advanced settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OAF6ZAAX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143934iBA039874B698F410/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OAF6ZAAX.png" alt="0695b00000OAF6ZAAX.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 15:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-of-a-CSV-File-using-tRestClient-HTTP-PUT-method-HTTP-411/m-p/2369819#M132930</guid>
      <dc:creator>powerchip</dc:creator>
      <dc:date>2022-02-08T15:07:06Z</dc:date>
    </item>
  </channel>
</rss>

