liveBook · Manning

Binary data

Also called binary file

Binary data is information represented as sequences of bytes rather than character-oriented text.

How 4 Manning books explain it

Learn Haskell by Example

Binary encoding represents data using sequences of bits and bytes rather than textual character representations.

How it is used
Explains how image parsers read compact PNM bitmap, graymap, and pixmap representations.
How deep it goes
Descends from format distinctions to byte width, bit order, 16-bit assembly, and parser implementations.
Examples
Uses P4 bitmap bytes, P5 graymap values, P6 RGB values, and two-byte 16-bit samples.
What you can do after
Build binary PNM parsers that extract bitmap bits and read eight-bit or sixteen-bit pixel values.

Read how Learn Haskell by Example explains binary data →

The Quick Python Book, Fourth Edition

Binary data is information represented as encoded bytes rather than directly as human-readable text characters.

How it is used
Handles file formats and byte-oriented data when text files cannot represent the required information or interoperability needs.
How deep it goes
Explains bytes, binary modes, pathlib methods, and structured packing, while recommending higher-level object storage for many custom formats.
Examples
Uses pathlib byte I/O, encoded accented text, and C-compatible records containing an integer, float, and character sequence.
What you can do after
Apply it via pathlib or struct to write, read, pack, and unpack binary files.

Read how The Quick Python Book, Fourth Edition explains binary data →

Data Without Labels

Binary data has exactly two mutually exclusive possible categories or values.

How it is used
Classifies categorical observations whose possible outcomes are limited to two exclusive classes.
How deep it goes
Defines two-class categorical data and distinguishes it from nominal, ordinal, discrete, and continuous data.
Examples
Uses yes/no, dry/wet, hard/soft, good/bad, and true/false as paired class examples.

Read how Data Without Labels explains binary data →

Modern C

Binary data is data represented as uninterpreted byte sequences rather than text characters.

How it is used
Uses binary streams to preserve C object bytes when reading or writing files and devices.
How deep it goes
Explains translation hazards, binary mode, byte counts, file positions, and error detection, but defers detailed error case analysis.
Examples
Demonstrates newline translation changing binary structure and identifies fread, fwrite, ftell, and fseek as the relevant interfaces.
What you can do after
Apply via C library interfaces to transfer binary bytes, navigate file positions, and detect incomplete operations.

Read how Modern C explains binary data →

Also covered in

What to know first

Related concepts

Questions about binary data

What is binary data?

Binary data is information represented as sequences of bytes rather than character-oriented text.

Which Manning books explain binary data?

Learn Haskell by Example, The Quick Python Book, Fourth Edition, Data Without Labels and Modern C.

What should I know before learning binary data?

Manning books that teach binary data usually introduce bytes, plain text and reference first.

What kinds of binary data are there?

Kinds of binary data include plain text.

What is binary data a kind of?

Binary data is a kind of data. Data is recorded or represented information, observations, measurements, or values that can be stored, processed, communicated, or interpreted.

What is binary data also called?

Binary data is also called binary file.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.