<?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 How get image and correct json file in apache NiFi using post-request? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-get-image-and-correct-json-file-in-apache-NiFi-using/m-p/333513#M231452</link>
    <description>&lt;P&gt;I need to send a file in jpeg format and a json string in post-request. Screenshots below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Без имени.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33115iEE5AB1A01FF40D0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Без имени.png" alt="Без имени.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; By sending this request, I get an incorrect data display and an incorrect type in NiFi (This works even if the application/json or image/jpeg type is explicitly specified). Below you can see the name of the mime.type attribute for two flow files. In theory, application/json and image/jpeg should have been written here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Без имени.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33119i19C660804BC9C93C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Без имени.png" alt="Без имени.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; and&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Без имени.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33120i2BC306FFDF9078A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Без имени.png" alt="Без имени.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And the contents of the JSON file are displayed as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Без имени.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33118iC7ACFA53273ECC34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Без имени.png" alt="Без имени.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Is there any way to make sure that the file type is displayed correctly, and we can see the contents in json file?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 18:27:57 GMT</pubDate>
    <dc:creator>ChayannFamali</dc:creator>
    <dc:date>2022-01-10T18:27:57Z</dc:date>
  </channel>
</rss>

