Connector Framework Server 25.1
Connector Framework Server Help

# is_escaped_binary_file

The `is_escaped_binary_file` function checks whether a document has a reasonable proportion of escaped binary characters.

## Syntax

    is_escaped_binary_file( doc [, ThresholdPercent] )

## Arguments

Argument | Description
--- | ---
`doc` | (LuaDocument) The document that you want to check.
`ThresholdPercent` | (float) The minimum percentage of binary escaped content required to return `true`. The default is 10%.

## Returns

Boolean. Returns the result of the check.

## Example

    function handler(document)
       if(is_escaped_binary_file(document))
          write_idx(document, "bad_binary_documents.idx")
       else
          write_idx(document, "good_documents.idx")
    end

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

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 Connector Framework Server 25.1

Topic Title: is_escaped_binary_file