{"success":true,"data":{"ext":"pam","name":"PAM","description":"Portable Arbitrary Map (PAM) is a raster image format in the Netpbm family, maintained by the Netpbm project. It is used for exchanging and processing images with Netpbm utilities, especially when flexible channel layouts or alpha data are needed in scripted workflows. PAM is generally low risk because it is a simple text-based format, though uncommon support and malformed files can still expose parser bugs.","mime":["image/x-portable-arbitrarymap"],"risk_level":"Safe","signatures":[{"hex":"50 37","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"}]}],"related":[],"usage":{"python":"def is_pam(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PAM by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x37])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isPAM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x37]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsPAM(data []byte) bool {\n    signature := []byte{0x50, 0x37}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Images"}}