<?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 extract fields from multipart/form-data on a Talend job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334676#M103320</link>
    <description>&lt;P&gt;Hi gjeremy ! Thank you for answering my question. Here's a pic of the tRestRequest as you asked .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Duy21AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140145i4D8746928699DB2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Duy21AAB.png" alt="0695b00000Duy21AAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried the solution that you suggest but it didn't work in my case. On this purpose I want to show you how the data arrives in the first tLogRow_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Duy26AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143081i34765F4990F91D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Duy26AAB.png" alt="0695b00000Duy26AAB.png" /&gt;&lt;/span&gt;p.s the payload in tRestRequest has byte[] as datatype.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:51:41 GMT</pubDate>
    <dc:creator>DVi7</dc:creator>
    <dc:date>2021-04-02T07:51:41Z</dc:date>
    <item>
      <title>How to extract fields from multipart/form-data on a Talend job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334674#M103318</link>
      <description>&lt;P&gt;Hi to all! I want to build a webservice in Talend able to receive json and file at the same time. I am using the following call in python:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;import requests&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;url="&lt;A href="http://localhost:8088/trial" target="_blank"&gt;http://localhost:8088/trial&lt;/A&gt;"&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;data = {&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;'var1' : 'this',&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;'var2'&amp;nbsp;: 'that'&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;headers = {'Content-Type': 'application/json'}&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;files = {'document': open('C:/Users/User/Desktop/Data/Talend/Mail/sample.pdf', 'rb')}&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;r = requests.post(url, files=files, data=data, headers=headers)&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;print(r.status_code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below a screenshot of the job in Talend:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DuTi6AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133768iD7945C9614372223/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DuTi6AAF.png" alt="0695b00000DuTi6AAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Issue is that inside my Talend job i am unable to retrieve the values from 'var1' and 'var2' because they &lt;B&gt;arrive as multipart/form-data&lt;/B&gt;. How can I fetch them in my tJavaRow_1? Any suggestion about that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334674#M103318</guid>
      <dc:creator>DVi7</dc:creator>
      <dc:date>2024-11-16T00:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from multipart/form-data on a Talend job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334675#M103319</link>
      <description>&lt;P&gt;HI could you send us the component view of the tRestRequest? You can choose Produces JSON in the parameters of the tRestRequest and after use a tExtractJSONFields to fetch the JSON.&lt;/P&gt;&lt;P&gt;Send me love and Kudos&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 08:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334675#M103319</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-01T08:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from multipart/form-data on a Talend job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334676#M103320</link>
      <description>&lt;P&gt;Hi gjeremy ! Thank you for answering my question. Here's a pic of the tRestRequest as you asked .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Duy21AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140145i4D8746928699DB2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Duy21AAB.png" alt="0695b00000Duy21AAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already tried the solution that you suggest but it didn't work in my case. On this purpose I want to show you how the data arrives in the first tLogRow_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Duy26AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143081i34765F4990F91D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Duy26AAB.png" alt="0695b00000Duy26AAB.png" /&gt;&lt;/span&gt;p.s the payload in tRestRequest has byte[] as datatype.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-extract-fields-from-multipart-form-data-on-a-Talend-job/m-p/2334676#M103320</guid>
      <dc:creator>DVi7</dc:creator>
      <dc:date>2021-04-02T07:51:41Z</dc:date>
    </item>
  </channel>
</rss>

