<?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 PDF file (1) and other parameters (2) through POST REST API in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375800#M138137</link>
    <description>&lt;P&gt;Right, so it appears that you are just missing the file now. This is good. I suspected that the file name would not work. Unfortunately, since I do not have access to this API I cannot try anything out myself. When working with APIs it usually takes a few attempts to get the calls correct. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Move the file param back to the parameters and wrap the path to the file in this routine method.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;package&lt;/B&gt; routines;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.io.File;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.io.IOException;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.nio.charset.StandardCharsets;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.nio.file.Files;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; org.apache.commons.codec.binary.Base64;&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;B&gt;public&lt;/B&gt; &lt;B&gt;class&lt;/B&gt; Base64File {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	&lt;B&gt;public&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; String encodeFileToBase64Binary(String filePath) &lt;B&gt;throws&lt;/B&gt; IOException {&lt;/P&gt;&lt;P&gt;	&amp;nbsp;&amp;nbsp;&lt;B&gt;byte&lt;/B&gt;[] encoded = Base64.&lt;I&gt;encodeBase64&lt;/I&gt;(Files.&lt;I&gt;readAllBytes&lt;/I&gt;(filePath));&lt;/P&gt;&lt;P&gt;	&amp;nbsp;&amp;nbsp;&lt;B&gt;return&lt;/B&gt; &lt;B&gt;new&lt;/B&gt; String(encoded, StandardCharsets.&lt;B&gt;&lt;I&gt;UTF_8&lt;/I&gt;&lt;/B&gt;);&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.....this is to provide the contents of the file in Base64 which could be what your API is expecting.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the name of the software providing the API you are using? Is it something that I might be able to get a copy of so that I can try somethings out? It would make it much easier to be able to examine the errors ad tweak the config for myself.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 14:44:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-30T14:44:51Z</dc:date>
    <item>
      <title>How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375784#M138121</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I would like to create a REST request with the following parameters int Talend. Which component should I use and how to pass parameters to this component (body)? I have all necessary metadata on an input edge, need to transform somehow to body/string parameter and add definition for file to upload (path on the edge).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1mZ5AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138519iFE8842888D7CB725/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1mZ5AAJ.png" alt="0695b00000L1mZ5AAJ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used tRestClient :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1maXAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148535i40E887672380608B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1maXAAR.png" alt="0695b00000L1maXAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1mbfAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142515i756D359B3C488E1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1mbfAAB.png" alt="0695b00000L1mbfAAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1mbuAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133096i9E3C91A9805E738B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1mbuAAB.png" alt="0695b00000L1mbuAAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I used tRest :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1mdHAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141171i272C08C195298B8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1mdHAAR.png" alt="0695b00000L1mdHAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1mdRAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147127iA5DC59879EABE5FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1mdRAAR.png" alt="0695b00000L1mdRAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Help please&lt;/P&gt;&lt;P&gt;@&lt;/P&gt;&lt;P&gt;&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;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6712"&gt;@richard&lt;/a&gt; Hall​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375784#M138121</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2024-11-15T23:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375785#M138122</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please stick to one topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.talend.com/s/question/0D55b00006e5eJ3CAI/api-rest-post-pdf-file-with-other-params" alt="https://community.talend.com/s/question/0D55b00006e5eJ3CAI/api-rest-post-pdf-file-with-other-params" target="_blank"&gt;https://community.talend.com/s/question/0D55b00006e5eJ3CAI/api-rest-post-pdf-file-with-other-params&lt;/A&gt; so that we could pay individual attention to your issue. Thanks for your time.&lt;/P&gt;&lt;P&gt;Bets regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 05:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375785#M138122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T05:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375786#M138123</link>
      <description>&lt;P&gt;Hi @zied khayechi​,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it is very difficult to help with web service queries like this as they all have their own requirements. One solution certainly doesn't fit all when it comes to services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have spotted a few issues in your config that might be causing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, in your tRestClient config, you are not setting the "Accept Type" to Multipart. This needs to be done when transferring files. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when you are using the FORM Content Type, the query params box below becomes the place to configure your form params. So all of your params shown in the top image need to be in there and named appropriately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WIth regard to the file name, you may need to play around with this a bit. It won't just be the name you need to supply, I suspect that it will need to be the full path to the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this out and let us know how you get on?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 10:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375786#M138123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T10:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375787#M138124</link>
      <description>&lt;P&gt;Hello @Richard Hall​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have already test it, but it didn't work for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&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;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1yUCAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156069i85B49E128865F664/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1yUCAAZ.png" alt="0695b00000L1yUCAAZ.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L1yW3AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144249i2C274ECEE9CEAF2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L1yW3AAJ.png" alt="0695b00000L1yW3AAJ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 14:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375787#M138124</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-25T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375788#M138125</link>
      <description>&lt;P&gt;Can you post the error message please? The NullPointerException should not be happening. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, what is being sent via the tJava4. The tJava is not meant to be used like that. It would be better to use the tJavaFlex to send row data. Can you share the code and show your tRestClient input schema?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 16:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375788#M138125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T16:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375789#M138126</link>
      <description>&lt;P&gt;In fact, i wanna just post a pdf file and queries  via API .&lt;/P&gt;&lt;P&gt;and I don't have anything as input ( BODY/STRING)  ( as we have multipart/form-data content-type)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L26G8AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138644i021006746E97B9AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L26G8AAJ.png" alt="0695b00000L26G8AAJ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L26GIAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157926i4925480FDF03C52B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L26GIAAZ.png" alt="0695b00000L26GIAAZ.png" /&gt;&lt;/span&gt;when i put accepter-type = multipart I got a NullPointerException&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L26H6AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142252i1C2689052B0FFD31/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L26H6AAJ.png" alt="0695b00000L26H6AAJ.png" /&gt;&lt;/span&gt;But as accepter type = all , I got Bad request ( missing queries ) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|400&amp;nbsp;&amp;nbsp;&amp;nbsp;|{"code":400,"success":false,"data":{"error":"Bad request - repository_id is missing or null"}}|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the API Swagger: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L26GXAAZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135452iC2EB886706AA2885/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L26GXAAZ.png" alt="0695b00000L26GXAAZ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks @Richard Hall​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 13:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375789#M138126</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-26T13:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375790#M138127</link>
      <description>&lt;P&gt;Can you try moving the repository_id from params to the header section. It looks like you have it as a header variables in your tRest that is working. However in your tRestClient version you have it as a param.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 16:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375790#M138127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-26T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375791#M138128</link>
      <description>&lt;P&gt; does't work either &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L273tAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128603iF7443B44260D0080/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L273tAAB.png" alt="0695b00000L273tAAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L273yAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133510i964154BAE4C6E292/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L273yAAB.png" alt="0695b00000L273yAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 16:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375791#M138128</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-26T16:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375792#M138129</link>
      <description>&lt;P&gt;Can you share the API documentation? It is almost impossible to guess at what an API requires I'm afraid.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 17:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375792#M138129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-26T17:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375793#M138130</link>
      <description>&lt;P&gt;here the API DOc&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2HeQAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132538i49D34C6FF0E70390/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2HeQAAV.png" alt="0695b00000L2HeQAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 08:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375793#M138130</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-29T08:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375794#M138131</link>
      <description>&lt;P&gt;OK, this is going to take some trial and error I'm afraid. First of all, the repository_id and type_id are both form properties, so do not go in the header. They are also both of type integer and not String. We'll ignore the metadata until we get rid of the repository_id error. Can set the repository_id and type_id params to be integers (remove the double quotes) and see what that returns please?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 10:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375794#M138131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-29T10:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375795#M138132</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried that, but the param mehode doesn't allow integer as a values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2JH4AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131343iF38823F97AF6F35C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2JH4AAN.png" alt="0695b00000L2JH4AAN.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2JHEAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157711i8917D1F84E41E4CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2JHEAA3.png" alt="0695b00000L2JHEAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 13:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375795#M138132</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-29T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375796#M138133</link>
      <description>&lt;P&gt;I've just noticed something that makes me think part of your problem is caused by something else in your job failing. This image here......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2JapAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156186iDF1923C2760C1B86/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2JapAAF.png" alt="0695b00000L2JapAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shows a nullpointerexception that is not necessarily linked to your tRestClient. The URL at the top of the sys out suggests that you have a tRestRequest in this job somewhere. Can you show the whole job and show the whole of the error messages you get in text please?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 14:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375796#M138133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-29T14:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375797#M138134</link>
      <description>&lt;P&gt;here the job,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WOmAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151115i906424E1F732EEDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WOmAAN.png" alt="0695b00000L2WOmAAN.png" /&gt;&lt;/span&gt;First I've used tRequest to get file and params, &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WPBAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142207iCEF7293D079DC3FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WPBAA3.png" alt="0695b00000L2WPBAA3.png" /&gt;&lt;/span&gt;as you see here, I've got the file in my local repo through Postman Request: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WPpAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150073iA36A4E77E972BE70/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WPpAAN.png" alt="0695b00000L2WPpAAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WPGAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139274iFC67A51C4B1DCE58/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WPGAA3.png" alt="0695b00000L2WPGAA3.png" /&gt;&lt;/span&gt;And then i get the NullPointerException in tRestClient .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me it's the first time that i handle a Post file through an API that why i didn't catch exactly the prob &lt;span class="lia-unicode-emoji" title=":worried_face:"&gt;😟&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" Démarrage du job WS_GED_POST_TEST a 11:23 30/11/2021.&lt;/P&gt;&lt;P&gt;Endpoint deployed at: http://127.0.0.1:8040/api/v1/documents&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3394&lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;Exception in component tRESTClient_2 (WS_GED_POST_TEST)&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST.tRESTClient_2Process(WS_GED_POST_TEST.java:3057)&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST.tRESTRequest_1_LoopProcess(WS_GED_POST_TEST.java:4721)&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST$RestServiceProviderImpl4TalendJob.processRequest(WS_GED_POST_TEST.java:714)&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST$RestServiceProviderImpl4TalendJob.Request(WS_GED_POST_TEST.java:813)&lt;/P&gt;&lt;P&gt;	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;	at java.lang.reflect.Method.invoke(Method.java:498)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:193)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:103)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:247)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:79)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:205)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.Server.handle(Server.java:505)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.run(Thread.java:748)&lt;/P&gt;&lt;P&gt;[FATAL]: inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST - tRESTClient_2 null&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST.tRESTClient_2Process(WS_GED_POST_TEST.java:3057)&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST.tRESTRequest_1_LoopProcess(WS_GED_POST_TEST.java:4721)&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST$RestServiceProviderImpl4TalendJob.processRequest(WS_GED_POST_TEST.java:714)&lt;/P&gt;&lt;P&gt;	at inter_application.ws_ged_post_test_0_1.WS_GED_POST_TEST$RestServiceProviderImpl4TalendJob.Request(WS_GED_POST_TEST.java:813)&lt;/P&gt;&lt;P&gt;	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;	at java.lang.reflect.Method.invoke(Method.java:498)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:193)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:103)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:247)&lt;/P&gt;&lt;P&gt;	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:79)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:205)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.Server.handle(Server.java:505)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)&lt;/P&gt;&lt;P&gt;	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)&lt;/P&gt;&lt;P&gt;	at java.lang.Thread.run(Thread.java:748)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375797#M138134</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-30T10:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375798#M138135</link>
      <description>&lt;P&gt;Can you remove all of the other components (maybe create another job) and just add the tRestClient with a tLogRow. Without access to your Job I can't identify what is causing the NullPointerException. You may be able to find this by looking at the code line numbers in the error and looking at the Java. If you can understand Java, this may be quite easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to remove any other possible causes for the nullpointerexception, we need to get back to just the tRestClient and the tLogRow (on both response and error outputs).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375798#M138135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-30T10:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375799#M138136</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here we have only the component in another Job: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WeVAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129820iA09673CA31270857/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WeVAAV.png" alt="0695b00000L2WeVAAV.png" /&gt;&lt;/span&gt;and as mentionned here the prob in ligne 1338 which refers to our params in multipart accepter type:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WekAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135741i97E78FDDA8A4EA7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WekAAF.png" alt="0695b00000L2WekAAF.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WgHAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127851i90B656E6F003EFA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WgHAAV.png" alt="0695b00000L2WgHAAV.png" /&gt;&lt;/span&gt;I've changed the Accepter-type to All and as you see it detect the repository_id and the file is as always missing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&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" image-alt="0695b00000L2WgbAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145821iCC247E698567E65E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WgbAAF.png" alt="0695b00000L2WgbAAF.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2WggAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156373i4C420F5C3BF9AF81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2WggAAF.png" alt="0695b00000L2WggAAF.png" /&gt;&lt;/span&gt;I've even tried to integrate the File in the header and i didn't work either.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2Wh5AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151266iA02054F33C8E8CA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2Wh5AAF.png" alt="0695b00000L2Wh5AAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that with tRest and tRestClient we couldn't pass file as a param . &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;have you another point of view or proposition please ? &lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 11:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375799#M138136</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-30T11:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375800#M138137</link>
      <description>&lt;P&gt;Right, so it appears that you are just missing the file now. This is good. I suspected that the file name would not work. Unfortunately, since I do not have access to this API I cannot try anything out myself. When working with APIs it usually takes a few attempts to get the calls correct. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Move the file param back to the parameters and wrap the path to the file in this routine method.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;package&lt;/B&gt; routines;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.io.File;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.io.IOException;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.nio.charset.StandardCharsets;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; java.nio.file.Files;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;import&lt;/B&gt; org.apache.commons.codec.binary.Base64;&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;B&gt;public&lt;/B&gt; &lt;B&gt;class&lt;/B&gt; Base64File {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	&lt;B&gt;public&lt;/B&gt; &lt;B&gt;static&lt;/B&gt; String encodeFileToBase64Binary(String filePath) &lt;B&gt;throws&lt;/B&gt; IOException {&lt;/P&gt;&lt;P&gt;	&amp;nbsp;&amp;nbsp;&lt;B&gt;byte&lt;/B&gt;[] encoded = Base64.&lt;I&gt;encodeBase64&lt;/I&gt;(Files.&lt;I&gt;readAllBytes&lt;/I&gt;(filePath));&lt;/P&gt;&lt;P&gt;	&amp;nbsp;&amp;nbsp;&lt;B&gt;return&lt;/B&gt; &lt;B&gt;new&lt;/B&gt; String(encoded, StandardCharsets.&lt;B&gt;&lt;I&gt;UTF_8&lt;/I&gt;&lt;/B&gt;);&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.....this is to provide the contents of the file in Base64 which could be what your API is expecting.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the name of the software providing the API you are using? Is it something that I might be able to get a copy of so that I can try somethings out? It would make it much easier to be able to examine the errors ad tweak the config for myself.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 14:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375800#M138137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-30T14:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375801#M138138</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think that, but i give it a try : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2YHTAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144278iF57BE76BB1BB0BED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2YHTAA3.png" alt="0695b00000L2YHTAA3.png" /&gt;&lt;/span&gt;I tried it also through Postman but it didn't work: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2YXHAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130200iCDCBB15D2ED4B6CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2YXHAA3.png" alt="0695b00000L2YXHAA3.png" /&gt;&lt;/span&gt;As I mentionned before the API get a FILE as params&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L2YYAAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145413i612D478B536D066B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L2YYAAA3.png" alt="0695b00000L2YYAAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375801#M138138</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-11-30T16:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375802#M138139</link>
      <description>&lt;P&gt;What software is exposing the API you are trying to send the file to? &lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375802#M138139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-30T16:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload PDF file (1) and other parameters (2) through POST REST API</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375803#M138140</link>
      <description>&lt;P&gt;Hello @Richard Hall​&amp;nbsp; @Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have finally make this API.&lt;/P&gt;&lt;P&gt;I have used tFileFetch :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LxFpVAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138321i9220320525AA174B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LxFpVAAV.png" alt="0695b00000LxFpVAAV.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LxFpzAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155995i2522496F2692342D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LxFpzAAF.png" alt="0695b00000LxFpzAAF.png" /&gt;&lt;/span&gt;Here is my notes to close this case&amp;nbsp;: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In TFileFetch, we didn’t specify the context-type ( it’s already specified in the component code ) &lt;/LI&gt;&lt;LI&gt;We get the responses ( sucess&amp;nbsp;or reject ) from global variables ERROR_MESSAGE and INPUT_STREAM )&lt;/LI&gt;&lt;LI&gt;We get responses with OnComponentOk and OnComponentError&lt;/LI&gt;&lt;LI&gt;We have to put an iterate link before tFileFetch to eliminte loops generated on errors&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your collaboration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;zied &lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 14:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-upload-PDF-file-1-and-other-parameters-2-through-POST/m-p/2375803#M138140</guid>
      <dc:creator>Ziedkh</dc:creator>
      <dc:date>2021-12-14T14:50:44Z</dc:date>
    </item>
  </channel>
</rss>

