<?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 PDF file in tRestClient PUT body in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548886#M149568</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. I have tried the tHTTPClient but still no success. I looked as it the component was changing "&amp;amp;" to "&amp;amp;amp" in the URL so I applied&amp;nbsp;&lt;SPAN&gt;java.net.URLEncoder.encode() to the path. The error I'm receiving now is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Error&amp;gt;&amp;lt;Code&amp;gt;KeyTooLongError&amp;lt;/Code&amp;gt;&amp;lt;Message&amp;gt;Your key is too long&amp;lt;/Message&amp;gt;&amp;lt;Size&amp;gt;1830&amp;lt;/Size&amp;gt;&amp;lt;MaxSizeAllowed&amp;gt;1024&amp;lt;/MaxSizeAllowed&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know what key it is referring to or how to fix it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2026 16:40:44 GMT</pubDate>
    <dc:creator>Dobby1</dc:creator>
    <dc:date>2026-05-11T16:40:44Z</dc:date>
    <item>
      <title>Send PDF file in tRestClient PUT body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548321#M149552</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm using the Adobe PDF Services API and trying to do a PUT via tRestClient and need to include a pdf file in the body but nothing I've tried so far has worked. Below is the REST API CURL found in the documentation. How do I achieve the inclusion of the PDF file which is referenced in the --data-binary '@{{Placeholder for file path}}'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.adobe.com/document-services/docs/overview/pdf-services-api/gettingstarted/" target="_blank" rel="noopener"&gt;https://developer.adobe.com/document-services/docs/overview/pdf-services-api/gettingstarted/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curl --location -g --request PUT '&lt;/SPAN&gt;&lt;A href="https://dcplatformstorageservice-prod-us-east-1.s3-accelerate.amazonaws.com/b37fd583-1ab6-4f49-99ef-d716180b5de4?X-Amz-Security-Token={" target="_blank" rel="noopener"&gt;https://dcplatformstorageservice-prod-us-east-1.s3-accelerate.amazonaws.com/b37fd583-1ab6-4f49-99ef-d716180b5de4?X-Amz-Security-Token={&lt;/A&gt;&lt;SPAN&gt;{Placeholder for X-Amz-Security-Token}}&amp;amp;X-Amz-Algorithm={{Placeholder for X-Amz-Algorithm}}&amp;amp;X-Amz-Date={{Placeholder for X-Amz-Date}}&amp;amp;X-Amz-SignedHeaders={{Placeholder for X-Amz-SignedHeaders}}&amp;amp;X-Amz-Expires={{Placeholder for X-Amz-Expires}}&amp;amp;X-Amz-Credential={{Placeholder for X-Amz-Credential}}&amp;amp;X-Amz-Signature={{Placeholder for X-Amz-Signature}}' \&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--header 'Content-Type: application/pdf' \&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--data-binary '@{{Placeholder for file path}}'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2026 13:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548321#M149552</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2026-05-03T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Send PDF file in tRestClient PUT body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548358#M149554</link>
      <description>&lt;P&gt;Hello Dobby1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the &lt;STRONG&gt;Qlik community&lt;/STRONG&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Adobe PDF Services flow, PUT is a &lt;STRONG&gt;plain binary upload&lt;/STRONG&gt; to a pre‑signed S3 URL. In &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/esb-rest/trestclient" target="_blank"&gt;&lt;STRONG&gt;tRestClient&lt;/STRONG&gt;&lt;/A&gt;, you must send the PDF &lt;STRONG&gt;as raw binary bytes in the request body&lt;/STRONG&gt;, not as multipart/form‑data.&lt;BR /&gt;&lt;BR /&gt;You can refer to this &lt;A href="https://community.qlik.com/t5/Talend-Studio/tRESTClient/m-p/2547177#M149504" target="_blank"&gt;&lt;STRONG&gt;article&lt;/STRONG&gt;&lt;/A&gt;, which gives detailed information about the same.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 13:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548358#M149554</guid>
      <dc:creator>Rahul_Kale</dc:creator>
      <dc:date>2026-05-04T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Send PDF file in tRestClient PUT body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548886#M149568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. I have tried the tHTTPClient but still no success. I looked as it the component was changing "&amp;amp;" to "&amp;amp;amp" in the URL so I applied&amp;nbsp;&lt;SPAN&gt;java.net.URLEncoder.encode() to the path. The error I'm receiving now is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Error&amp;gt;&amp;lt;Code&amp;gt;KeyTooLongError&amp;lt;/Code&amp;gt;&amp;lt;Message&amp;gt;Your key is too long&amp;lt;/Message&amp;gt;&amp;lt;Size&amp;gt;1830&amp;lt;/Size&amp;gt;&amp;lt;MaxSizeAllowed&amp;gt;1024&amp;lt;/MaxSizeAllowed&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know what key it is referring to or how to fix it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 16:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2548886#M149568</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2026-05-11T16:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Send PDF file in tRestClient PUT body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2549315#M149579</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Why are you getting KeyTooLongError:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;You &lt;STRONG&gt;URL‑encoded the presigned URL&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;That breaks Adobe/AWS S3 presigned URLs.&lt;/LI&gt;
 &lt;LI&gt;S3 then treats the whole query string as the object key → too long → error.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;What &lt;/STRONG&gt;&lt;I&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt; to do:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Do &lt;STRONG&gt;not&lt;/STRONG&gt; use URLEncoder.encode()&lt;/LI&gt;
 &lt;LI&gt;&amp;nbsp;Do &lt;STRONG&gt;not&lt;/STRONG&gt; modify the URL at all&lt;/LI&gt;
 &lt;LI&gt;Do &lt;STRONG&gt;not&lt;/STRONG&gt; “fix” &amp;amp;amp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;What to do instead:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&amp;nbsp;Use the &lt;STRONG&gt;exact presigned URL&lt;/STRONG&gt; from Adobe&lt;/LI&gt;
 &lt;LI&gt;&amp;nbsp;Make sure it contains real &amp;amp;, not %26&lt;/LI&gt;
 &lt;LI&gt;Put the URL in a &lt;STRONG&gt;Talend context variable&lt;/STRONG&gt; (prevents XML escaping)&lt;/LI&gt;
 &lt;LI&gt;Send the PDF as &lt;STRONG&gt;binary body&lt;/STRONG&gt;&lt;/LI&gt;
 &lt;LI&gt;Header: Content-Type = application/pdf&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Talend (tHttpRequest / tRestClient):&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Method: PUT&lt;/LI&gt;
 &lt;LI&gt;URL: context.presignedUrl&lt;/LI&gt;
 &lt;LI&gt;Body: Binary → PDF file&lt;/LI&gt;
 &lt;LI&gt;Headers: only Content-Type&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;That’s it.&lt;BR /&gt;&lt;BR /&gt;If you still get errors, check that the outgoing request URL shows &amp;amp;X-Amz-... (not %26X-Amz-...).&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 13:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2549315#M149579</guid>
      <dc:creator>Rahul_Kale</dc:creator>
      <dc:date>2026-05-18T13:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Send PDF file in tRestClient PUT body</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2549336#M149580</link>
      <description>&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried the options you suggested but it appears that the tHTTPClient is changing the URL that is being sent. I observed that the response body had "&amp;amp;" replaced with "&amp;amp;amp". That caused an error message indicating that the SignatureProvided does not match no longer appears.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a case opened with Qlik.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 16:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-PDF-file-in-tRestClient-PUT-body/m-p/2549336#M149580</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2026-05-18T16:30:10Z</dc:date>
    </item>
  </channel>
</rss>

