Advantages of binary serialization

What are the main advantages of binary serialization?

- An object is stored in a file, a database or even in the memory. However, data to be transferred over a network needs to be in a linear form for which serialization and deserialization are used.

- Advantage of serialization is the ability of an object to be serialized into a persistent or a non-persistent storage media and then reconstructing the same object later by de-serializing the object.

- Also Binary Serialization is faster, supports complex objects too with read only properties and even circular references.
How do you encapsulate the binary serialization?
How do you encapsulate the binary serialization? - public static void SerializeBinary( object o, string file_name)...
How do you implement a custom serialization?
How do you implement a custom serialization? - CUSTOM SERIALIZATION implementation...
Difference between the SoapFormatter and the XmlSerializer
SoapFormatter and XmlSerializer - SOAP formatter will actually take the field values of an object and store all of that information in the stream passed...
Post your comment