Introduction to Binary File


☞ These files can be image files, mp3 files, pdf files etc.

☞ These are the files which we cannot read,

☞ It contain data in original format.

☞ Data is stored in byte form.

☞ Pickling process is used to read, write, append and update binary files.

Serializing : To convert python object(string, list, tuple, etc) into byte stream and stored in hard disk for future use.

Deserializing : To convert byte stream into python object.

☞ To use pickling process, we use pickle module.