<?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: Attribute Value length Limit In Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357200#M237504</link>
    <description>&lt;P&gt;Ok, there are 2 cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You use Base64EncodeContent to encode your image and after that with ExtractText there you write the content of your flowfile to an attribute.&lt;/P&gt;&lt;P&gt;There you have to set the property&amp;nbsp;&lt;STRONG&gt;Maximum Capture Group Length&amp;nbsp;&lt;/STRONG&gt;to your&amp;nbsp;desired length. I would prefer that you also set&amp;nbsp;&lt;STRONG&gt;Maximum Buffer Size&amp;nbsp;&lt;/STRONG&gt;to ~10 MB that the process gets fully buffered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Processor&amp;nbsp;&lt;SPAN&gt;ExecuteStreamCommand&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Properties:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Command Arguments:&lt;/STRONG&gt;&amp;nbsp;-w 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Command Path:&lt;/STRONG&gt; base64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Output Destination Attribute:&lt;/STRONG&gt; attribute.base64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Max Attribute Length:&lt;/STRONG&gt; your desired length&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you dont work with one of those 2 cases, then please describe your flow &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 13:41:24 GMT</pubDate>
    <dc:creator>Faerballert</dc:creator>
    <dc:date>2022-11-08T13:41:24Z</dc:date>
    <item>
      <title>Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357174#M237491</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the requirement where I am converting the base64 Image content to attribute and after that I am preparing the payload including the&amp;nbsp;base64 Image content. But the problem is while converting the&amp;nbsp;base64 Image content (approx. 6-7 MB size ) it is getting truncated in the attribute Value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please tell me what is the length limit of attribute value in NIFI.&lt;/P&gt;&lt;P&gt;Appreciate your help. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357174#M237491</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-11-08T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357191#M237501</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the maximal value length of an attribute is 2147483647 (max Integer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:48:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357191#M237501</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2022-11-08T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357199#M237503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Can we increase the &lt;SPAN&gt;length of an attribute. If so what needs to be done here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 13:20:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357199#M237503</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-11-08T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357200#M237504</link>
      <description>&lt;P&gt;Ok, there are 2 cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You use Base64EncodeContent to encode your image and after that with ExtractText there you write the content of your flowfile to an attribute.&lt;/P&gt;&lt;P&gt;There you have to set the property&amp;nbsp;&lt;STRONG&gt;Maximum Capture Group Length&amp;nbsp;&lt;/STRONG&gt;to your&amp;nbsp;desired length. I would prefer that you also set&amp;nbsp;&lt;STRONG&gt;Maximum Buffer Size&amp;nbsp;&lt;/STRONG&gt;to ~10 MB that the process gets fully buffered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Processor&amp;nbsp;&lt;SPAN&gt;ExecuteStreamCommand&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Properties:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Command Arguments:&lt;/STRONG&gt;&amp;nbsp;-w 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Command Path:&lt;/STRONG&gt; base64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Output Destination Attribute:&lt;/STRONG&gt; attribute.base64&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Max Attribute Length:&lt;/STRONG&gt; your desired length&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you dont work with one of those 2 cases, then please describe your flow &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 13:41:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357200#M237504</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2022-11-08T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357235#M237516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;, I am following the first flow but while converting&lt;SPAN&gt;&amp;nbsp;content of flowfile to an attribute using ExtractText the value of the attribute is getting truncated . Is there any way that we can resize the image in NiFi? I checked for Resize image processor but its not available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please suggest.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 03:51:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357235#M237516</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-11-09T03:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357255#M237529</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98568"&gt;@Techie123&lt;/a&gt;&amp;nbsp;can you show the properties of the processor?&lt;/P&gt;&lt;P&gt;Can you maybe check if the base64 string length is for real longer than the max integer value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With&amp;nbsp;&lt;SPAN&gt;ExecuteStreamCommand you can resize your image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attributes should actually be kept small, so it's not the optimal solution either.&lt;BR /&gt;Maybe you can also define the workflow a bit, for which you need the string in an attribute - maybe you can work around that?!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 08:18:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357255#M237529</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2022-11-09T08:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357257#M237530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am converting the base64 image content to attribute because i am preparing the payload for the same.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Techie123_0-1667982349471.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36198iA4532A62F9717DFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Techie123_0-1667982349471.png" alt="Techie123_0-1667982349471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have attached the snapshot of the payload.&amp;nbsp;file_content.0 is nothing but the content of the file that i have converted into the attribute using ExtractText processor and using it into the payload&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 08:28:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357257#M237530</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-11-09T08:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Value length Limit In Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357320#M237552</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;, can you please reply if you have the solution for this or can you share the code to resize the attachment from the mailbox&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 05:53:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Attribute-Value-length-Limit-In-Nifi/m-p/357320#M237552</guid>
      <dc:creator>Techie123</dc:creator>
      <dc:date>2022-11-10T05:53:26Z</dc:date>
    </item>
  </channel>
</rss>

