serializing

  • Thread starter Niels Wiederanders
  • Start date
N

Niels Wiederanders

Hello NG,

Im Trying to save some App Data by De-/ Serializing an Object:

Public Function DeSerializeFromByte(ByVal Bytes As Byte()) as
SerializableClass
Dim myObject As SerializableClass
Dim mySerializer As
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter = New
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter()
Dim myMemoryStream As System.IO.MemoryStream = New
System.IO.MemoryStream(Bytes)
myObject = CType(mySerializer.Deserialize(myMemoryStream),
SerializableClass)
myMemoryStream.Close()
Return myObject
End Function

My Problem is, that I have 2 Applications with different Assembly Names. If
I Serialize the Object in App1 then I get an Exception in App2, if I try to
DeSerialize it.

Does anybodey Know how I can DeSerialize a Binary (by not using XML) File to
another Application?

Thanks

Niels Wiederanders
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top