Serialize Objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Tom,

This issue generally comes up due to conflicting namespaces. If you were to
check the binary stream in the file, you would notice that it contains the
class' namespace mentioned somewhere withing the binary code. Now when you
try to deserialise it in a different application, you need to deserialise the
stream into the same object. Thus the only point of concern lies in selecting
the right object to deserialise into.

I did face this problem sometime ago, and I did get around this by properly
managing the namespace of the final object.

Hope this helps,
Nick
 
Hi!

My question is whether it's possible to serialize an object into a binary
file from one application, and then deserialize this object in a different
application that has the same class. I tried to do so, but when I try to
seserialize, I get an error message saying that the application doesn't
contain a refference to the first application.
Is it possible to serialize object in one app and deserialize it in a
different one?

Thanks!
Tom Rahav.
 
Back
Top