Memory Stream Problem

pi1itis

New member
Joined
Feb 27, 2004
Messages
1
Location
Bulgaria
Hello, I must transfer file thought Internet. When I send the file I use network stream. The data from the network stream I received it in Memory Stream and after I deserialized the memory stream and save the file localy. But my problem is that sometimes when have to deserialized the data fire NullReferenceException. When I debug this I saw that the data can not be deserialized because the position in memory stream in not set in 0. Its very strange for me because I use for that Seek method. If some body know something about that, pls HELP ME! I use C# language for that.
Thanks in advance!
 
Back
Top