<?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 API REST : POST PDF file with other params in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375386#M137813</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to send file in a POST API through trestclient,&lt;/P&gt;&lt;P&gt;i have attached the file and parameter in the query parameter but i couldn't detect the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help please &lt;/P&gt;&lt;P&gt;@&lt;A href="https://community.talend.com/s/profile/00539000004XsaeAAC" alt="null" target="_blank"&gt;xdshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;(Talend Beijing Tech Co., Ltd.)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1YEmAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146418iA52CB69D0CBEED60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1YEmAAN.png" alt="0695b00000L1YEmAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1YHCAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141478i4D3DB35127F2FFC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1YHCAA3.png" alt="0695b00000L1YHCAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:29:32 GMT</pubDate>
    <dc:creator>Ziedkh</dc:creator>
    <dc:date>2024-11-15T23:29:32Z</dc:date>
    <item>
      <title>API REST : POST PDF file with other params</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375386#M137813</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to send file in a POST API through trestclient,&lt;/P&gt;&lt;P&gt;i have attached the file and parameter in the query parameter but i couldn't detect the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help please &lt;/P&gt;&lt;P&gt;@&lt;A href="https://community.talend.com/s/profile/00539000004XsaeAAC" alt="null" target="_blank"&gt;xdshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;(Talend Beijing Tech Co., Ltd.)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1YEmAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146418iA52CB69D0CBEED60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1YEmAAN.png" alt="0695b00000L1YEmAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1YHCAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141478i4D3DB35127F2FFC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1YHCAA3.png" alt="0695b00000L1YHCAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375386#M137813</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2024-11-15T23:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: API REST : POST PDF file with other params</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375387#M137814</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What's your input file? Please try using a tRest component instead of a tRestClient to POST w/ a body. You can past the raw JSON directly in the HTTP body section.&lt;/P&gt;&lt;P&gt;Please have a look at my screenshots for details.&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1kCTAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144271i0953851F4E3976E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1kCTAAZ.png" alt="0695b00000L1kCTAAZ.png" /&gt;&lt;/span&gt;You should be passing the value that is sent from the tFileInputRaw&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1kCYAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155898i2A70D005E63C0459/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1kCYAAZ.png" alt="0695b00000L1kCYAAZ.png" /&gt;&lt;/span&gt;Where 'row1' is the row leading from tFileInputRaw and 'content' is what represents the content of the file. (Clicking the row itself, then the component button will let you see what the schema is defined as)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1kDRAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153003i6E869B83F20C775C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1kDRAAZ.png" alt="0695b00000L1kDRAAZ.png" /&gt;&lt;/span&gt;Let us know if it is OK with you.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&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;</description>
      <pubDate>Wed, 24 Nov 2021 07:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375387#M137814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T07:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: API REST : POST PDF file with other params</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375388#M137815</link>
      <description>&lt;P&gt;Hello Sabrina, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;I created the same flow and i have some issues: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1mCzAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136946i3540A8A54B545241/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1mCzAAJ.png" alt="0695b00000L1mCzAAJ.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1ksKAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133341i2E93E400BD087E79/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1ksKAAR.png" alt="0695b00000L1ksKAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; It is OK to put the authorisation OAuth2.0 and token in header params ?&lt;/LI&gt;&lt;LI&gt;The API have a multipart/form-data ( params ars file, integer, string and an array) , i have integreted the file in the body as ( pdf_input.content) and i wanna check if i put the others params in the body or the header??&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; (upload file and other parameters through REST api)&lt;/P&gt;&lt;P&gt; ( This is the API Swagger ) &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1kliAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144735iAC2760627A58FED6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1kliAAB.png" alt="0695b00000L1kliAAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1kmgAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136487i23698109EEB097B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1kmgAAB.png" alt="0695b00000L1kmgAAB.png" /&gt;&lt;/span&gt;Thanks @&lt;A href="https://community.talend.com/s/profile/00539000004XsaeAAC" alt="https://community.talend.com/s/profile/00539000004XsaeAAC" target="_blank"&gt;xdshi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Zied kh&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 09:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375388#M137815</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-24T09:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: API REST : POST PDF file with other params</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375389#M137816</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You input is PDF file? I didn't try to upload PDF file via trestxxx component before. Here is tfilefetch component which has Upload file option to upload one or more files to the server in advanced settings.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 05:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375389#M137816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T05:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: API REST : POST PDF file with other params</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375390#M137817</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried tFilefetch to send the file and params to the API ( see screenshots )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1xFfAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151525iB323A7E8DFE57F88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1xFfAAJ.png" alt="0695b00000L1xFfAAJ.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1xFzAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132594i25020AE6C62395C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1xFzAAJ.png" alt="0695b00000L1xFzAAJ.png" /&gt;&lt;/span&gt;but I still have issues:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1xJwAAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151321iD7A5E6D948F20227/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1xJwAAJ.png" alt="0695b00000L1xJwAAJ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; The problem is how to pass a PDF file and others parameters to the API&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;it works well on Postman with this config :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1xMHAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131675iC2BE7BDB0F42E857/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1xMHAAZ.png" alt="0695b00000L1xMHAAZ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ​&amp;nbsp;&lt;A href="https://community.talend.com/s/profile/00539000004XsaeAAC" alt="https://community.talend.com/s/profile/00539000004XsaeAAC" target="_blank"&gt;xdshi&lt;/A&gt;]​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 09:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-REST-POST-PDF-file-with-other-params/m-p/2375390#M137817</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-25T09:24:55Z</dc:date>
    </item>
  </channel>
</rss>

