<?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 POST request with file sent as Multipart in route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299462#M71805</link>
    <description>&lt;P&gt;Hi, I am having trouble getting the following use case to work and was wondering if anyone had a working example of this, or experience with this type of scenario.&lt;/P&gt;&lt;P&gt;Here is my use case:&lt;/P&gt;&lt;P&gt;We consume a HTTP POST request where a file is “attached” to the body through multipart. The file itself uses Google’s protobuf encoding.&lt;/P&gt;&lt;P&gt;We need to add two multipart fields named “&lt;B&gt;accountId&lt;/B&gt;” &amp;amp; “&lt;B&gt;accountNumber&lt;/B&gt;” with their respective values to the multipart body&lt;/P&gt;&lt;P&gt;We then send it to a service that accepts a POST request also using multipart but requires all three values present (&lt;B&gt;file, accountId, accountNumber&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;So basically, an east way to test it is to either use postman or the following cUrl:&lt;/P&gt;&lt;P&gt;CUrl -F file=@testfile.pb &lt;A href="http://localhsot:8041/testservice/upload" target="_blank"&gt;http://localhsot:8041/testservice/upload&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has a working example of a similar use case?&lt;/P&gt;&lt;P&gt;Currently I have tried many approaches but keep running into issues sending everything through the cRest component (producer)&lt;/P&gt;&lt;P&gt;Has anyone gotten something like this to work?&lt;/P&gt;&lt;P&gt;If at all possible we would like to stay with the Talend ESB components (camel)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any and all help&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:58:15 GMT</pubDate>
    <dc:creator>jonlar</dc:creator>
    <dc:date>2024-11-15T22:58:15Z</dc:date>
    <item>
      <title>POST request with file sent as Multipart in route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299462#M71805</link>
      <description>&lt;P&gt;Hi, I am having trouble getting the following use case to work and was wondering if anyone had a working example of this, or experience with this type of scenario.&lt;/P&gt;&lt;P&gt;Here is my use case:&lt;/P&gt;&lt;P&gt;We consume a HTTP POST request where a file is “attached” to the body through multipart. The file itself uses Google’s protobuf encoding.&lt;/P&gt;&lt;P&gt;We need to add two multipart fields named “&lt;B&gt;accountId&lt;/B&gt;” &amp;amp; “&lt;B&gt;accountNumber&lt;/B&gt;” with their respective values to the multipart body&lt;/P&gt;&lt;P&gt;We then send it to a service that accepts a POST request also using multipart but requires all three values present (&lt;B&gt;file, accountId, accountNumber&lt;/B&gt;).&lt;/P&gt;&lt;P&gt;So basically, an east way to test it is to either use postman or the following cUrl:&lt;/P&gt;&lt;P&gt;CUrl -F file=@testfile.pb &lt;A href="http://localhsot:8041/testservice/upload" target="_blank"&gt;http://localhsot:8041/testservice/upload&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has a working example of a similar use case?&lt;/P&gt;&lt;P&gt;Currently I have tried many approaches but keep running into issues sending everything through the cRest component (producer)&lt;/P&gt;&lt;P&gt;Has anyone gotten something like this to work?&lt;/P&gt;&lt;P&gt;If at all possible we would like to stay with the Talend ESB components (camel)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any and all help&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299462#M71805</guid>
      <dc:creator>jonlar</dc:creator>
      <dc:date>2024-11-15T22:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: POST request with file sent as Multipart in route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299463#M71806</link>
      <description>&lt;P&gt;route that will process the multipart form, get the uploaded file from the&amp;nbsp;&lt;/P&gt;&lt;P&gt;requests.files[]array and return. We'll use this method to send the form to the django server using the requests library.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ltdcommodities.me/" alt="https://www.ltdcommodities.me/" target="_blank"&gt;&amp;nbsp;LTD Commodities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299463#M71806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-02T08:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: POST request with file sent as Multipart in route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299464#M71807</link>
      <description>&lt;P&gt;HI @&lt;A href="https://community.talend.com/s/profile/0055b00000PbGltAAF" alt="https://community.talend.com/s/profile/0055b00000PbGltAAF" target="_blank"&gt;SFerry1649935247&lt;/A&gt;, would you happen to have a working example of this. I'd be quite interested in seeing it if you do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alot!&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 12:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/POST-request-with-file-sent-as-Multipart-in-route/m-p/2299464#M71807</guid>
      <dc:creator>jonlar</dc:creator>
      <dc:date>2022-05-02T12:10:57Z</dc:date>
    </item>
  </channel>
</rss>

