<?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: Data transfer via nifi api in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375147#M242305</link>
    <description>&lt;P&gt;Ok, thanks for the info. I thought it would have been an elegant solution to be able to use the nifi-api to transfer files directly to a port. I have tried ListenHTTP, which suits my task perfectly.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 13:05:54 GMT</pubDate>
    <dc:creator>Fredi</dc:creator>
    <dc:date>2023-08-11T13:05:54Z</dc:date>
    <item>
      <title>Data transfer via nifi api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375116#M242289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do I properly use the nifi-api to create flowfile from a file? I tried to do what is described here: &lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt; under 'Data transfer'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to use a simple curl command to transfer a file as flowfile to an input port as follows:&lt;/P&gt;&lt;P&gt;curl -X POST -F 'file=@Documents/Nifi_Docs/example.txt' &lt;A href="http://10.0.1.111:8080/nifi-api/data-transfer/input-ports/dac743ae-0189-1000-c6a6-efd211a162d1/transactions/1010/flow-files" target="_blank"&gt;http://10.0.1.111:8080/nifi-api/data-transfer/input-ports/dac743ae-0189-1000-c6a6-efd211a162d1/transactions/1010/flow-files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As response I get a 415 error Unsupported Media Type. What is the supported media type then? Anyone tried this before? What is the transaction id good for? I just put 1010 as a random number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried sending from postman&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:14:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375116#M242289</guid>
      <dc:creator>Fredi</dc:creator>
      <dc:date>2023-08-10T14:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer via nifi api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375122#M242294</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100919"&gt;@Fredi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi's remote input ports are designed to receive NiFi FlowFiles transmitted to the remote-input port by a NiFi Remote Process Group (RPG) using NiFi's &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#site-to-site" target="_self"&gt;Site-to-Site&lt;/A&gt; (S2S) protocol.&amp;nbsp; They are not intended to be used for pushing arbitrary files into a NiFi dataflow.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For moving files in to NiFi, you should be using a NiFi processor for that.&amp;nbsp; There a variety of different of different processors available to include but not limited to ListFile+FetchFile, ListSMB+fetchSMB, listSFTP+FetchSFTP, GetFile, HandleHTTPRequest+HandleHTTPResponse, ListenHTTP, etc.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 18:12:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375122#M242294</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-10T18:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer via nifi api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375147#M242305</link>
      <description>&lt;P&gt;Ok, thanks for the info. I thought it would have been an elegant solution to be able to use the nifi-api to transfer files directly to a port. I have tried ListenHTTP, which suits my task perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 13:05:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Data-transfer-via-nifi-api/m-p/375147#M242305</guid>
      <dc:creator>Fredi</dc:creator>
      <dc:date>2023-08-11T13:05:54Z</dc:date>
    </item>
  </channel>
</rss>

