Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:51:54+00:00 2026-05-23T15:51:54+00:00

In our Client/Server Application we’ve been using BinaryFormatter for the serialization process. For performance

  • 0

In our Client/Server Application we’ve been using BinaryFormatter for the serialization process.
For performance reasons we are trying to migrate to protobuf-net ( http://code.google.com/p/protobuf-net/ ).

Our software transmits huge graphs with cycles between Client and Server.

Now I am looking for a way to make sure that the data which was serialized and deserialized using protobuf is exactly the same as the one which was usually processed by BinaryFormatter.

A bit by bit comparison is simple:
I serialize using BinaryFormatter to a file.
Deserialize this file again using BinaryFormatter.
Then I serialize using ProtoBuf into a file.
Deserialize using ProtoBuf from that file.
Serialize again using BinaryFormatter into a file.

Then i can simply compare that file with the original file.

However, those two files are not 100% equal. So now I need to find a way to track the differences down.

Is there maybe some tool out there which visualizes data that was serialized by BinaryFormatter? Or do you know some other helper which does a deep comparison and tells me where the differences are?

Using XMLSerializer and comparing two XML files is not possible as BinaryFormatter is able to serialize way more data than the XMLSerializer – even without marking fields explicitly.

Thank you,
TH

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:51:54+00:00Added an answer on May 23, 2026 at 3:51 pm

    How about using DataContractSerializer with object-tracking enabled (preserveObjectReferences in the constructor). That should allow you to serialize them to xml (of a sort, at least), where you might be able to compare the differences.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our client/server application, a user can log in using a username/password. The server
In our application, we are using RMI for client-server communication in very different ways:
We have a client server hosting our web application using Apache 2.2 & Tomcat
We need to build an administration portal website to support our client/server application. Since
We are trying to come up with our client and server standard and there
I'm trying to diagnose a problem with a server application running on a Client
Subject: Migrating very complex, legacy client-server application to SAS enabled web-version using NOSQL We
we have a java server-client application with an applet in the client side. our
We are planning to develop a client server application using C# and MySQL. We
In our client / server application, the server side is exposed by a collection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.