EncodeContent

Description:

Encode or decode the contents of a FlowFile using Base64, Base32, or hex encoding schemes

Tags:

encode, decode, base64, base32, hex

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
ModeModeEncode
  • Encode Transform original input to encoded representation
  • Decode Transform encoded input to original representation
Specifies whether the content should be encoded or decoded.
EncodingEncodingBase64
  • Base64 Encode or decode using Base64 set of characters
  • Base32 Encode or decode using Base32 set of characters
  • Hexadecimal Encode or decode using hexadecimal set of characters
Specifies the type of encoding used.
Line Output ModeLine Output ModeSingle Line
  • Single Line The encoded content will be written as a single line.
  • Multiple Lines The encoded content will be written as multiple lines.
Controls the line formatting for encoded content based on selected property values.

This Property is only considered if all of the following conditions are met:
  • The [Encoding] Property is set to one of the following values: [Base32], [Base64]
  • The [Mode] Property has a value of "Encode".
Encoded Line LengthEncoded Line Length76Each line of encoded data will contain up to the configured number of characters, rounded down to the nearest multiple of 4.
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)

This Property is only considered if all of the following conditions are met:
  • The [Line Output Mode] Property has a value of "Multiple Lines".
  • The [Encoding] Property is set to one of the following values: [Base32], [Base64]
  • The [Mode] Property has a value of "Encode".

Relationships:

NameDescription
failureAny FlowFile that cannot be encoded or decoded will be routed to failure
successAny FlowFile that is successfully encoded or decoded will be routed to success

Reads Attributes:

None specified.

Writes Attributes:

None specified.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.