Need Assistance?

support@tutorialshub.in

Advanced Node.js

Buffers

Node.js Free Lesson
5 min read
ADVERTISEMENT

A Buffer represents raw binary data. Node uses buffers when working with files, network data, streams, and binary protocols.

Understanding buffers becomes important when handling uploads and non-text data.

Deep dive

Buffer and encoding

A Buffer stores bytes. Converting text to a Buffer uses an encoding such as UTF-8. Converting the Buffer back to text requires the correct encoding.

ADVERTISEMENT