7
Reply

What is serialization?

Sumit Jolly

Sumit Jolly

10y
2.9k
0
Reply

    To transport object over network we need to convert into stream of bytes. The process of conversion is serialization and vice-versa is deserialization.

    The process of converting the object into the stream of bytes.... ex: i have image in the picturebox and i need to store in database,so we need to convert into the stream of bytes and store it into the DB..

    Convert object into bytes stream for sharing on network.

    Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.

    refer below linkhttps://msdn.microsoft.com/en-IN/library/ms233843.aspxhttp://www.codeproject.com/Articles/36781/Serialization-and-Deserialization-in-ASP-NET-with

    Convertion of C# object to Json Object

    I think the most common use of the term serialization has to do with converting a binary object into an XML (or other string) representation so that it can be stored in a database/file or sent across a network in a web service call. Deserialization is the reverse process - converting an XML/string back into an object.Another term you might come across is marshalling/unmarshalling. Marshalling is basically the same concept as serializing, and unmarshalling is the same as deserializing.