NiFi Ingest 26.3
NiFi Ingest

# Add File Format Detection

This section describes how to add file format detection, so that only image files are routed to media analysis.

To add file format detection

1. Stop all of the processors in the dataflow by clicking the stop button in the Operation area.
2. Add a KeyViewRouteOnFileType processor to the canvas.

3. Click the queue between the KeyViewExtractFiles and KeyViewFilterDocument processor.

   The queue is selected and handles appear so that you can modify the route.

4. Drag the blue destination handle from the KeyViewFilterDocument processor to the KeyViewRouteOnFileType processor.

5. Right-click the KeyViewRouteOnFileType processor and click Configure.

   The Edit Processor dialog box opens.

6. Click the Properties tab and set the following properties:

   IDOL License Service | The name of the License Service that you created in Create a License Service.
   KeyView Filter Service | Select the KeyView filter service that you created in Add a KeyView Service.

7. Add a new property to route image files. With this processor, each property you create defines a new relationship (for more information, see the documentation for the KeyViewRouteOnFileType processor).

   1. Click Add property .

      The Add Property dialog box opens.

   2. Type a name for the property, for example `images`, and click OK.

      Another dialog box opens, so that you can set the value of the property.

   3. Specify the value `5,83,143,238` and click OK. These numbers are File Content Extraction format codes (5 for BMP files, 83 for TIFF, 143 for JPEG, and 238 for PNG).

8. Click APPLY.

9. Create a connection between the KeyViewRouteOnFileType processor and the KeyViewFilterDocument processor.

   The Create Connection dialog box opens.

10. In the Relationships area, select the unmatched and unknown check boxes:

    - unmatched - all file types that were successfully identified, but did not match a property that you configured. In this example, this includes all files that were successfully identified but are not BMP, TIFF, JPEG, or PNG files.
    - unknown - all file types that File Content Extraction could not identify.

11. Click ADD.

    The connection appears on the canvas. Any FlowFile that is processed successfully but does not represent a BMP, TIFF, JPEG, or PNG file is now routed to the KeyViewFilterDocument processor (as before). FlowFiles that represent one of the image formats are no longer routed to the KeyViewFilterDocument processor because you did not select the images relationship.

    The following sections describe how to add media analysis to process the image files.

Copyright 2018-2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery NiFi Ingest 26.3

Topic Title: Add File Format Detection