<?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>question Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part' in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384652#M245450</link>
    <description>&lt;P&gt;unfortunatly it's not working, however if this can help, in Nifi 1.11 i m using a groovy script (I thought that I can avoid it by migrating to 1.18)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_0-1709730974454.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39986iCB4E52BCBEAA012E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_0-1709730974454.png" alt="bou7miiiz_0-1709730974454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 13:16:23 GMT</pubDate>
    <dc:creator>bou7miiiz</dc:creator>
    <dc:date>2024-03-06T13:16:23Z</dc:date>
    <item>
      <title>Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384583#M245420</link>
      <description>&lt;P&gt;Hello, I m sending a http requestto an API and facing some difficulties to configure the multipart specificities.&lt;/P&gt;&lt;P&gt;The 1st part should be binary (gzip) and named (data) and the second part should be json file and named (parameters). this works corretly with post man&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_0-1709648920450.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39960i3C2CADB4FCCEDD9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_0-1709648920450.png" alt="bou7miiiz_0-1709648920450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but I m not able to do the same thing with Nifi 1.18&lt;/P&gt;&lt;P&gt;this is my workflow&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_1-1709648950560.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39961i0D6D6291E11ED291/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_1-1709648950560.png" alt="bou7miiiz_1-1709648950560.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_2-1709648965425.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39962i8BBECC1B3E76AC28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_2-1709648965425.png" alt="bou7miiiz_2-1709648965425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_3-1709648988391.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39963i005F2C5BADE89CE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_3-1709648988391.png" alt="bou7miiiz_3-1709648988391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_4-1709649008588.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39964iA78FEB38C8AB9025/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_4-1709649008588.png" alt="bou7miiiz_4-1709649008588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if someone faced this situation, plz share your feedbacks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 14:50:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384583#M245420</guid>
      <dc:creator>bou7miiiz</dc:creator>
      <dc:date>2024-03-05T14:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384587#M245423</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109485"&gt;@bou7miiiz&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:45:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384587#M245423</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-03-05T16:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384610#M245433</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109485"&gt;@bou7miiiz&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Its hard to tell what is wrong from what you provided because you seem to everything setup accordingly but Im not familiar with what type of API you are working with so its hard to tell. First, I would like to know what is happening when you run the InvokeHttp? are you getting an error? what type of error and response code are you getting?&lt;/P&gt;&lt;P&gt;Second, I noticed in Postman you are referencing the json parameters value form a file, did you try to pass the json itself instead because that is what you are doing with Nifi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 03:24:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384610#M245433</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-03-06T03:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384634#M245440</link>
      <description>&lt;P&gt;thank you for your answer Samsal,&lt;/P&gt;&lt;P&gt;its a rest API via HTTP&lt;/P&gt;&lt;P&gt;the invokHttp is not throwing any error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_0-1709715787282.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39972iA122D0A6717B3313/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_0-1709715787282.png" alt="bou7miiiz_0-1709715787282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and m getting a 415 error with an empty response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_1-1709716079282.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39973i15F2EC0F4F0B24D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_1-1709716079282.png" alt="bou7miiiz_1-1709716079282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_2-1709716301383.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39974iEE4008A616DFAD25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_2-1709716301383.png" alt="bou7miiiz_2-1709716301383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and yes when I try to change the file in postman with a text, I get the same error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_3-1709716410998.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39975i8537FA6EFD4C0108/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_3-1709716410998.png" alt="bou7miiiz_3-1709716410998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; 415 Unsupported Media Type&lt;BR /&gt;&amp;lt; accept: application/json, application/cbor, application/xml;charset=UTF-8, application/*+json, text/xml;charset=UTF-8, application/*+xml;charset=UTF-8&lt;BR /&gt;&amp;lt; cache-control: no-cache, no-store, max-age=0, must-revalidate&lt;BR /&gt;&amp;lt; content-length: 0&lt;BR /&gt;&amp;lt; content-security-policy: frame-ancestors &lt;A href="https://sgconnect-hom.fr.world.socgen" target="_blank"&gt;https://sgconnect-hom.fr.world.socgen&lt;/A&gt; 'self'&lt;BR /&gt;&amp;lt; date: Wed, 06 Mar 2024 09:23:07 GMT&lt;BR /&gt;&amp;lt; expires: 0&lt;BR /&gt;&amp;lt; pragma: no-cache&lt;BR /&gt;&amp;lt; strict-transport-security: max-age=31536000; includeSubDomains; preload&lt;BR /&gt;&amp;lt; x-content-type-options: nosniff&lt;BR /&gt;&amp;lt; x-frame-options: DENY&lt;BR /&gt;&amp;lt; x-xss-protection: 1; mode=block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, when specifying the content type for the parameters it's working (in postman)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_4-1709717187185.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39981iB682D6508AB1B48B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_4-1709717187185.png" alt="bou7miiiz_4-1709717187185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the probleme is that I m not able to specify the second content type "&lt;SPAN&gt;&lt;SPAN class="ui-provider ed bgs bgt bgu bgv bgw bgx bgy bgz bha bhb bhc bhd bhe bhf bhg bhh bhi bhj bhk bhl bhm bhn bho bhp bhq bhr bhs bht bhu bhv bhw bhx bhy bhz"&gt;application/json" and it's mandatory either with file or text&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 09:29:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384634#M245440</guid>
      <dc:creator>bou7miiiz</dc:creator>
      <dc:date>2024-03-06T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384639#M245443</link>
      <description>&lt;P&gt;This is interesting. I never came across a case where you need to specify the content-type on the form data itself &amp;amp; I cant find anything for that in the invokehttp documentation.&amp;nbsp; &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt; , &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt; , &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt;&amp;nbsp; do you have any information on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look into how the type is passed using curl for example, it looks like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--form 'Parameters="...";type=application/json' &lt;/LI-CODE&gt;&lt;P&gt;I'm not sure this is going to work but when you set the post:form:parameters value try to append the type to the json string as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${JSONAttributes:append(";type=application/json")}&lt;/LI-CODE&gt;&lt;P&gt;If that doesnt help. Im not sure how can you do such thing without using something like ExecuteScript processor and write code like groovy to execute the API call.&lt;/P&gt;&lt;P&gt;I apologize if I did not have straight answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:37:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384639#M245443</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-03-06T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384652#M245450</link>
      <description>&lt;P&gt;unfortunatly it's not working, however if this can help, in Nifi 1.11 i m using a groovy script (I thought that I can avoid it by migrating to 1.18)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bou7miiiz_0-1709730974454.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39986iCB4E52BCBEAA012E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bou7miiiz_0-1709730974454.png" alt="bou7miiiz_0-1709730974454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:16:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384652#M245450</guid>
      <dc:creator>bou7miiiz</dc:creator>
      <dc:date>2024-03-06T13:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384855#M245519</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109485"&gt;@bou7miiiz&lt;/a&gt;&amp;nbsp;are you setting the mime type in the post HEADERS from nifi to the api?&lt;/P&gt;&lt;P&gt;The 415 error seems to be expecting "&lt;SPAN&gt;application/json".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Add this property the same way you added Authorization.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 18:20:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384855#M245519</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2024-03-11T18:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384906#M245557</link>
      <description>&lt;P&gt;how can I add this property to the invokHttp? I should precise that this content-type is only for the json part. the other part should be application/octet-stream&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 16:41:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/384906#M245557</guid>
      <dc:creator>bou7miiiz</dc:creator>
      <dc:date>2024-03-12T16:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.18 multipart/form-data with binary 'part' and json'part'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/386351#M246014</link>
      <description>&lt;P&gt;What headers do you set inside of Postman?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 20:48:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-1-18-multipart-form-data-with-binary-part-and-json-part/m-p/386351#M246014</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2024-04-09T20:48:11Z</dc:date>
    </item>
  </channel>
</rss>

