Media Server 26.1
Media Server Help

# ImportImageHashDatabase

Imports an image hash database that was exported using the action ExportImageHashDatabase.

Type: asynchronous

Parameter | Description | Required
--- | --- | ---
`database` | The name to give to the imported database. If you do not set this parameter, Media Server uses the same name as the database that was exported. | No
`dbdata` | The data to import. Send files to Media Server using a multipart/form-data HTTP POST request. | Set this or `dbpath`
`dbpath` | The path to the data file to import. Specify an absolute path, or a path relative to the Media Server executable file. To strengthen security, Media Server can be configured to read files only from specified directories. For information about the directories that Media Server is permitted to read from, see the parameter AllowedInputDirectories. | Set this or `dbdata`
`includeimagedata` | A Boolean value (default true) that specifies whether to import the training images. You can run image hash analysis without the images, but future enhancements to the image hash algorithm might require retraining and this is not possible without the images. | No
`includemetadata` | A Boolean value (default true) that specifies whether to import custom metadata. | No

## Example

The following example imports an image hash database from the file `imagehashes.dat` in the current directory:

    curl http://host:14000/action=ImportImageHashDatabase -F dbdata=@imagehashes.dat

## Response

This action is asynchronous, so Media Server always returns success accompanied by a token. You can use this token with the QueueInfo action to retrieve the status of your request.

Copyright 2025 Open Text
Version 26.1 | Last updated January 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 Media Server 26.1

Topic Title: ImportImageHashDatabase