<?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: POST image binary file in a string field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359019#M123927</link>
    <description>&lt;P&gt;Hello @Anselmo Peixoto​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your feedback and to put me on the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I successfully implemented the first step and now get an Oracle table with a BLOB column with image file contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to send it to the API using tRESTClient as you suggested BUT I don't find how to send BLOB data from the tDBInput to the tRESTClient component &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tDBInput has a column of byte[] / BLOB type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000od4zuAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151138iA29DC5DF783BFF5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000od4zuAAA.png" alt="0695b00000od4zuAAA.png" /&gt;&lt;/span&gt;And tRESTClient requests a string column, isn't it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping you understand my problem and you will be able to help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 12:04:42 GMT</pubDate>
    <dc:creator>Francis28</dc:creator>
    <dc:date>2023-09-12T12:04:42Z</dc:date>
    <item>
      <title>POST image binary file in a string field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359017#M123925</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 must upload image files located on a local server to an API with TALEND&lt;/P&gt;&lt;P&gt;Definition of the API is as below&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="0695b00000ociWgAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131090i7E2208DEE349DAFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ociWgAAI.png" alt="0695b00000ociWgAAI.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "fichier" (string type) must content binary file of the image&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ociXAAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154411i234B3ED7BCE66C26/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ociXAAAY.png" alt="0695b00000ociXAAAY.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Images of the defined folder must be loaded in an Oracle table&lt;/P&gt;&lt;P&gt;And then uploaded in the API with TALEND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't find how to do this with TALEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All suggestion are welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359017#M123925</guid>
      <dc:creator>Francis28</dc:creator>
      <dc:date>2024-11-15T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: POST image binary file in a string field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359018#M123926</link>
      <description>&lt;P&gt;Hello @Francis Noyeau​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use tFileInputRaw component to read the file as bytes array and connect it to a tDBOutput to write the file contents in a BLOB column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll be able to read the images from that table using tDBInput with bytes[] as the BLOB column data type and then you just need to send it to the API using tRESTClient.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2023 11:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359018#M123926</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-09-10T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: POST image binary file in a string field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359019#M123927</link>
      <description>&lt;P&gt;Hello @Anselmo Peixoto​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your feedback and to put me on the right way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I successfully implemented the first step and now get an Oracle table with a BLOB column with image file contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to send it to the API using tRESTClient as you suggested BUT I don't find how to send BLOB data from the tDBInput to the tRESTClient component &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tDBInput has a column of byte[] / BLOB type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000od4zuAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151138iA29DC5DF783BFF5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000od4zuAAA.png" alt="0695b00000od4zuAAA.png" /&gt;&lt;/span&gt;And tRESTClient requests a string column, isn't it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping you understand my problem and you will be able to help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 12:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359019#M123927</guid>
      <dc:creator>Francis28</dc:creator>
      <dc:date>2023-09-12T12:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: POST image binary file in a string field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359020#M123928</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I get more information about API expectation&lt;/P&gt;&lt;P&gt;I must upload the image file with a form-data format like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odHP6AAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135378i03350DDD01D33F52/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odHP6AAM.png" alt="0695b00000odHP6AAM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000odHPLAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151945i7D2A5ACA778A8A17/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000odHPLAA2.png" alt="0695b00000odHPLAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to be not possible with tRestClient, also I tried with a tFileFetch but I didn't find how to configure the component to get it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 14:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-image-binary-file-in-a-string-field/m-p/2359020#M123928</guid>
      <dc:creator>Francis28</dc:creator>
      <dc:date>2023-09-13T14:16:51Z</dc:date>
    </item>
  </channel>
</rss>

