{"success":true,"data":{"ext":"j2c","name":"J2C","description":"JPEG 2000 codestream (J2C) is the raw image data format defined by the JPEG 2000 standard, developed by the Joint Photographic Experts Group and maintained through ISO/IEC and ITU-T specifications. It is used for high-quality image storage, digital archiving, medical imaging, and broadcast workflows, especially where lossless or progressive decoding is needed. The format is generally safe; however, as with other image files, malformed codestreams can expose parser bugs in unsupported or outdated software.","mime":["image/x-jp2-codestream"],"risk_level":"Safe","signatures":[{"hex":"FF 4F FF 51","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"00 00 00 0C 6A 50 20 20 0D 0A 87 0A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_j2c(file_path: str) -> bool:\n    \"\"\"Check if file is a valid J2C by magic bytes.\"\"\"\n    signature = bytes([0xFF, 0x4F, 0xFF, 0x51])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isJ2C(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0x4F, 0xFF, 0x51]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsJ2C(data []byte) bool {\n    signature := []byte{0xFF, 0x4F, 0xFF, 0x51}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}