ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  .NET Serialization, Part 1
Subject:   MemoryStream.Position
Date:   2004-03-11 09:12:28
From:   neofight
Just wondering - has anyone run into an error when deserializing? After having problems.. I found that I had to set position=0 before attempting to deserialize my object.


EX:


Dim oxs As New BinaryFormatter()
Dim ms As New MemoryStream()
Dim dl As New DocumentList()


ms = ViewState("bleh")
ms.Position = 0


dl = oxs.Deserialize(ms)


1 to 2 of 2
  1. MemoryStream.Position
    2006-07-19 07:29:18  toddstibor [View]

  2. MemoryStream.Position
    2004-03-11 09:14:04  neofight [View]

1 to 2 of 2