FLM
application/octet-stream
Magic Bytes
Offset: 0
31 30 4C 46
The FLM file format, specifically known as an AutoCAD Filmroll, is a legacy vector graphics container developed by Autodesk. It was historically utilized to export complex 3D scene data from AutoCAD software to the external AutoShade application for rendering photorealistic images and technical animations. Since the integration of rendering tools directly into modern CAD environments, this format has become obsolete and poses minimal security risks as a static data container.
Validation Code
How to validate .flm files in Python
Python
def is_flm(file_path: str) -> bool:
"""Check if file is a valid FLM by magic bytes."""
signature = bytes([0x31, 0x30, 0x4C, 0x46])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .flm files in Node.js
Node.js
function isFLM(buffer: Buffer): boolean {
const signature = Buffer.from([0x31, 0x30, 0x4C, 0x46]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsFLM(data []byte) bool {
signature := []byte{0x31, 0x30, 0x4C, 0x46}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/flm
curl https://filesignature.org/api/v1/flm