DB2 conversion file

application/octet-stream

Safe

Magic Bytes

Offset: 0
53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00

The DB2 conversion file is a proprietary data format developed by IBM for use within its suite of database migration and synchronization tools. It functions as a structured container for schema mappings, migration logs, and configuration parameters required when transferring data between DB2 environments and other platforms. By utilizing the SQLite storage engine for internal data management, the format offers high integrity and is generally considered safe for administrative use across enterprise systems.

Extension

.cnv

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .cnv files in Python

Python
def is_cnv(file_path: str) -> bool:
    """Check if file is a valid CNV by magic bytes."""
    signature = bytes([0x53, 0x51, 0x4C, 0x69, 0x74, 0x65, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x61, 0x74, 0x20, 0x33, 0x00])
    with open(file_path, "rb") as f:
        return f.read(16) == signature

How to validate .cnv files in Node.js

Node.js
function isCNV(buffer: Buffer): boolean {
  const signature = Buffer.from([0x53, 0x51, 0x4C, 0x69, 0x74, 0x65, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x61, 0x74, 0x20, 0x33, 0x00]);
  return buffer.subarray(0, 16).equals(signature);
}
Go
func IsCNV(data []byte) bool {
    signature := []byte{0x53, 0x51, 0x4C, 0x69, 0x74, 0x65, 0x20, 0x66, 0x6F, 0x72, 0x6D, 0x61, 0x74, 0x20, 0x33, 0x00}
    if len(data) < 16 {
        return false
    }
    return bytes.Equal(data[:16], signature)
}

API Endpoint

GET /api/v1/cnv
curl https://filesignature.org/api/v1/cnv

Related Formats