<?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 file with API rest (PUT) with talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2461730#M140794</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, thanks for your solution. i didn't apply exactly the same code but i use a java routine very similar to this code and it works.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 12:43:22 GMT</pubDate>
    <dc:creator>asy-jqm</dc:creator>
    <dc:date>2024-06-12T12:43:22Z</dc:date>
    <item>
      <title>Upload file with API rest (PUT) with talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2459928#M140753</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm using a PUT Method to upload a file in a tool (Anaplan).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried with POSTMAN and it works fine (i put the file in the binary of the body and the content-type is "&lt;EM&gt;application/octet-stream&lt;/EM&gt;")&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Upload File Postman.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167463iC2D569F2D152EF48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Upload File Postman.png" alt="Upload File Postman.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Put Result Postman.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167464i04660EC8ACE79EB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Put Result Postman.png" alt="Put Result Postman.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But when i try to do it with talend the result is different either with &lt;EM&gt;&lt;STRONG&gt;tRestclient&lt;/STRONG&gt;&lt;/EM&gt; or classic &lt;EM&gt;&lt;STRONG&gt;tRest&lt;/STRONG&gt;&lt;/EM&gt;. The headers are same as postman and the body is "&lt;EM&gt;&lt;STRONG&gt;-upload-file C:/xxx/ANAPLAN/20240605_165600_DP_Warehouse_Full.csv&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asyjqm_0-1717681649469.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167466iD7765B2599FCB375/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asyjqm_0-1717681649469.png" alt="asyjqm_0-1717681649469.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asyjqm_1-1717681826966.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/167467i8A0901952E78EF26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asyjqm_1-1717681826966.png" alt="asyjqm_1-1717681826966.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there anyway I can upload file as binary in trest component or any other component.&lt;/P&gt;
&lt;P&gt;Here is the link to the API documentation :&amp;nbsp;&lt;EM&gt;&lt;A href="https://help.anaplan.com/load-the-import-file-chunks-011d23cf-4acf-43a8-8b92-3dc5f07d7b6a" target="_blank" rel="noopener"&gt;https://help.anaplan.com/load-the-import-file-chunks-011d23cf-4acf-43a8-8b92-3dc5f07d7b6a&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 12:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2459928#M140753</guid>
      <dc:creator>asy-jqm</dc:creator>
      <dc:date>2024-06-12T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file with API rest (PUT) with talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2460128#M140756</link>
      <description>&lt;P&gt;Short answer:&lt;BR /&gt;No, it is not possible using tREST or tRESTClient.&lt;BR /&gt;&lt;BR /&gt;I had a similar issue with Microsoft Graph file Uploads, and I ended up having to program it in Java as a custom Code Routine in Talend.&lt;BR /&gt;&lt;BR /&gt;If you want to try something lite that for yourself, here is a post from someone who created this using Java:&lt;BR /&gt;&lt;A href="https://community.anaplan.com/discussion/51791/uploading-file-via-rest-api-and-triggering-imports" target="_blank"&gt;https://community.anaplan.com/discussion/51791/uploading-file-via-rest-api-and-triggering-imports&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see, he turns the file into a&amp;nbsp;ByteArrayInputStream.&lt;BR /&gt;&lt;BR /&gt;So, unfortunately, no easy fix for this.&lt;BR /&gt;Expect to do some Java development to pull this off...&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 08:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2460128#M140756</guid>
      <dc:creator>janterje</dc:creator>
      <dc:date>2024-06-07T08:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Upload file with API rest (PUT) with talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2461730#M140794</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, thanks for your solution. i didn't apply exactly the same code but i use a java routine very similar to this code and it works.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 12:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Upload-file-with-API-rest-PUT-with-talend/m-p/2461730#M140794</guid>
      <dc:creator>asy-jqm</dc:creator>
      <dc:date>2024-06-12T12:43:22Z</dc:date>
    </item>
  </channel>
</rss>

