application/octet-stream

This is the MIME type that means "I don't know". It labels arbitrary binary data and says nothing about the format inside.

A server sends application/octet-stream when it has no mapping for a file's extension, when the file has no extension, or when it deliberately wants the browser to download rather than display. Browsers obey: a PDF or image served this way is saved to disk instead of opened. The label is also what many upload forms and APIs record for anything they could not classify, which is why it turns up in database columns and error messages.

The practical consequence is that the label tells you nothing about the file. 12 formats in our catalogue carry it because they have no registered type of their own, from NumPy arrays to Windows debug symbols, and a file labelled this way could equally be any of the other 200. The only way to know is to read the bytes.

Formats with this MIME type

  • DEX · Dalvik dex file · .dexSignature 64 65 78 0A 30 33 35 00 (dex\n035\0) · details
  • DSSTORE · Application Desktop Services Store · .DS_StoreSignature 00 00 00 01 42 75 64 31 (....Bud1) · details
  • PYTORCH · PyTorch · .pt, .pthSignature 50 4B 03 04 (PK..) · details
  • SQUASHFS · Squash filesystemSignature 68 73 71 73 (hsqs) · details
  • STLBINARY · Stereolithography CAD (binary) · .stlNo magic: an 80-byte header, then a 4-byte triangle count. If the file starts with the word solid it is ASCII STL instead.
  • THUMBSDB · Windows thumbnail cache · Thumbs.dbSignature D0 CF 11 E0 A1 B1 1A E1 · details
  • NPY · Numpy Array · .npySignature 93 4E 55 4D 50 59 (.NUMPY) · details
  • ONNX · Open Neural Network Exchange · .onnxNo fixed signature: a Protocol Buffers message. The producer name (pytorch, tf2onnx) usually appears within the first bytes.
  • PARQUET · Apache Parquet · .parquetSignature 50 41 52 31 (PAR1) · details
  • PDB · Windows Program Database · .pdbSignature 4D 69 63 72 6F 73 6F 66 74 20 43 2F 43 2B 2B 20 4D 53 46 20 37 2E 30 30 (Microsoft C/C++ MSF 7.00) · details
  • PICKLE · Python pickle · .pkl, .pickleSignature 80 04 · details
  • PYTHONBYTECODE · Python compiled bytecode · .pyc, .pyoSignature ?? ?? 0D 0D 0A · details

Where the MIME type comes from, and why it can be wrong

A MIME type is a label attached by whoever sends the file: a web server picks it from the file extension, an email client from the attachment name, an upload form from whatever the browser guessed. None of them read the content. A renamed file, a misconfigured server, or a deliberate disguise all produce a confident, wrong label.

To see what a server actually sends, and then what the file actually is:

# The declared type, from the HTTP headers
curl -sI https://example.com/file.dex | grep -i content-type

# The real type, from the bytes (macOS and Linux)
file --mime-type file.dex

Or drop the file on our detector, which reports the type the bytes support and the MIME type that goes with it, without uploading anything.

Setting it correctly on a server

# Nginx (mime.types or a location block)
types { application/octet-stream dex DS_Store pt pth stl Thumbs.db npy onnx parquet pdb pkl pickle pyc pyo; }

# Apache (.htaccess)
AddType application/octet-stream .dex .DS_Store .pt .pth .stl Thumbs.db .npy .onnx .parquet .pdb .pkl .pickle .pyc .pyo

# Any HTTP response
Content-Type: application/octet-stream