{"success":true,"data":{"ext":"ram","name":"RealMedia metafile","description":"RealMedia metafile (RAM) is a playlist and reference file format developed and maintained by RealNetworks for the RealMedia streaming ecosystem. It is used to point media players to streaming audio or video content and was commonly employed for internet radio, online clips, and other RealPlayer-based delivery systems. The format is legacy and largely obsolete, and its files are generally safe, though any referenced remote media should still be opened from trusted sources.","mime":["audio/x-pn-realaudio"],"risk_level":"Safe","signatures":[{"hex":"2E 72 61 FD","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":"72 74 73 70 3A 2F 2F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ra"],"usage":{"python":"def is_ram(file_path: str) -> bool:\n    \"\"\"Check if file is a valid RAM by magic bytes.\"\"\"\n    signature = bytes([0x2E, 0x72, 0x61, 0xFD])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isRAM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2E, 0x72, 0x61, 0xFD]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsRAM(data []byte) bool {\n    signature := []byte{0x2E, 0x72, 0x61, 0xFD}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Audio"}}