<?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 json with binary image to the Endpoint URL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/json-with-binary-image-to-the-Endpoint-URL/m-p/2533004#M148088</link>
    <description>&lt;P&gt;input response :&lt;/P&gt;
&lt;P&gt;[{"attributes":{"type":"ContentVersion"},"ContentLocation":"S","ContentSize":1201,"VersionData":"/services/data/v65.0/sobjects/ContentVersion/068R500000HiP4AIAV/VersionData","VersionNumber":"1","Title":"sitertracker-logo","PublishStatus":"P","ContentBodyId":"05TR500000NUusMMAT","FileType":"PNG",&lt;BR /&gt;"ReasonForChange":"base 64"},{"attributes":{"type":"ContentVersion"},"ContentLocation":"S","ContentSize":42521,"VersionData":"/services/data/v65.0/sobjects/ContentVersion/0683z000008xk9fAAA/VersionData","VersionNumber":"1","Title":"Sitetracker Logo - Small (Transparent)",,"ReasonForChange":" base 65 code "}]bash-4.4$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;response which i need to post to endpoint url:&lt;/P&gt;
&lt;P&gt;json payload -------- {attachement1 : sitertracker-logo.png, attachement2 : Sitetracker Logo - Small (Transparent).png}&lt;BR /&gt;binary files ------------ sitertracker-logo.png &amp;amp; Sitetracker Logo - Small (Transparent).png files&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;currently there has reasonfor change column attribute contains Base 64 code .i will be getting multiple attachements there could 3, 4 ,5...now this i should construct one json and all the base 64 i should convert to binary and send it to endpoint url......finally one json payload with all attachments&lt;/P&gt;
&lt;P&gt;in payload there is ReasonForChange":"base 64" here i will have base 64 code in this reason for change attribute&lt;/P&gt;
&lt;P&gt;now i should construct one json with {attachement1: filename, attachment2: filename,attachment3 : filename}.............................adding this i should convert base 64 to binary files and attach it to restendpoint url in single transaction ,, iwant to use using Tretclient component.&lt;BR /&gt;&lt;BR /&gt;the files are dynamic based on payload , we may get multiple attribute sets realted to document if there are 2 attachments, we will get 2 times the 'reason for change' column in that we will have different base 64 code.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2025 13:38:26 GMT</pubDate>
    <dc:creator>SAHITHYA</dc:creator>
    <dc:date>2025-10-09T13:38:26Z</dc:date>
    <item>
      <title>json with binary image to the Endpoint URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-with-binary-image-to-the-Endpoint-URL/m-p/2533004#M148088</link>
      <description>&lt;P&gt;input response :&lt;/P&gt;
&lt;P&gt;[{"attributes":{"type":"ContentVersion"},"ContentLocation":"S","ContentSize":1201,"VersionData":"/services/data/v65.0/sobjects/ContentVersion/068R500000HiP4AIAV/VersionData","VersionNumber":"1","Title":"sitertracker-logo","PublishStatus":"P","ContentBodyId":"05TR500000NUusMMAT","FileType":"PNG",&lt;BR /&gt;"ReasonForChange":"base 64"},{"attributes":{"type":"ContentVersion"},"ContentLocation":"S","ContentSize":42521,"VersionData":"/services/data/v65.0/sobjects/ContentVersion/0683z000008xk9fAAA/VersionData","VersionNumber":"1","Title":"Sitetracker Logo - Small (Transparent)",,"ReasonForChange":" base 65 code "}]bash-4.4$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;response which i need to post to endpoint url:&lt;/P&gt;
&lt;P&gt;json payload -------- {attachement1 : sitertracker-logo.png, attachement2 : Sitetracker Logo - Small (Transparent).png}&lt;BR /&gt;binary files ------------ sitertracker-logo.png &amp;amp; Sitetracker Logo - Small (Transparent).png files&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;currently there has reasonfor change column attribute contains Base 64 code .i will be getting multiple attachements there could 3, 4 ,5...now this i should construct one json and all the base 64 i should convert to binary and send it to endpoint url......finally one json payload with all attachments&lt;/P&gt;
&lt;P&gt;in payload there is ReasonForChange":"base 64" here i will have base 64 code in this reason for change attribute&lt;/P&gt;
&lt;P&gt;now i should construct one json with {attachement1: filename, attachment2: filename,attachment3 : filename}.............................adding this i should convert base 64 to binary files and attach it to restendpoint url in single transaction ,, iwant to use using Tretclient component.&lt;BR /&gt;&lt;BR /&gt;the files are dynamic based on payload , we may get multiple attribute sets realted to document if there are 2 attachments, we will get 2 times the 'reason for change' column in that we will have different base 64 code.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 13:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-with-binary-image-to-the-Endpoint-URL/m-p/2533004#M148088</guid>
      <dc:creator>SAHITHYA</dc:creator>
      <dc:date>2025-10-09T13:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: json with binary image to the Endpoint URL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-with-binary-image-to-the-Endpoint-URL/m-p/2541602#M149344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When sending JSON data with an image to a REST endpoint, Talend does not automatically convert or handle binary content.&lt;/P&gt;&lt;P&gt;If the image is provided as Base64:&lt;/P&gt;&lt;P&gt;It must be handled explicitly according to what the target API expects.&lt;/P&gt;&lt;P&gt;Talend will treat Base64 values as plain text unless you process them.&lt;/P&gt;&lt;P&gt;Implementation approach:&lt;/P&gt;&lt;P&gt;If the endpoint expects Base64 inside JSON:&lt;/P&gt;&lt;P&gt;Keep the image content as Base64&lt;/P&gt;&lt;P&gt;Build the JSON payload using tMap / tWriteJSONField&lt;/P&gt;&lt;P&gt;Send the request using tRESTClient with Content-Type: application/json&lt;/P&gt;&lt;P&gt;If the endpoint expects a binary file:&lt;/P&gt;&lt;P&gt;Decode the Base64 value in Talend (for example using java.util.Base64.getDecoder())&lt;/P&gt;&lt;P&gt;Send the request using tRESTClient or tHttpRequest configured for multipart/form-data&lt;/P&gt;&lt;P&gt;Attach the binary content as a file or request body part&lt;/P&gt;&lt;P&gt;Important notes:&lt;/P&gt;&lt;P&gt;JSON payloads cannot contain raw binary data; binary content must be Base64-encoded.&lt;/P&gt;&lt;P&gt;Talend does not implicitly transform Base64 strings into binary attachments.&lt;/P&gt;&lt;P&gt;The request structure must strictly match the API contract.&lt;/P&gt;&lt;P&gt;Best practice:&lt;BR /&gt;Confirm whether the endpoint expects Base64-encoded data or multipart binary content, and build the Talend job accordingly.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourav&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-with-binary-image-to-the-Endpoint-URL/m-p/2541602#M149344</guid>
      <dc:creator>gouravdubey5</dc:creator>
      <dc:date>2026-01-27T06:55:18Z</dc:date>
    </item>
  </channel>
</rss>

