RealMedia metafile

audio/x-pn-realaudio

Safe

Magic Bytes

Offset: 0
2E 72 61 FD

RealMedia metafile (RAM) is a pointer format developed by RealNetworks for referencing streaming multimedia content. It primarily functions as a redirection link for RealAudio or RealVideo streams, enabling compatible media players to initiate playback from remote servers. This legacy format is inherently safe as it contains plain text URLs without executable components, though its usage has declined significantly with the advent of modern web streaming standards.

Extension

.ram

MIME Type

audio/x-pn-realaudio

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .ram files in Python

Python
def is_ram(file_path: str) -> bool:
    """Check if file is a valid RAM by magic bytes."""
    signature = bytes([0x2E, 0x72, 0x61, 0xFD])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .ram files in Node.js

Node.js
function isRAM(buffer: Buffer): boolean {
  const signature = Buffer.from([0x2E, 0x72, 0x61, 0xFD]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsRAM(data []byte) bool {
    signature := []byte{0x2E, 0x72, 0x61, 0xFD}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats