L
lord.zoltar
I am serializing a some objects and inserting them into a database,
then retrieving them afterwards.
Serializing (using a BinaryFormatter) and storing the objects seems to
give me no problems, but when I try to deserialize, I get "The input
stream is not a valid binary format." exception (followed by a long
string of bytes that represent the object and it seems to be correct).
What is really puzzling me is that I ran a test and when I deserialize
the objects immediately (that is, I don't store them to the database, I
just deserialize them right away), everything seems to work fine. I
only seem to have problems when one procedure serializes the object and
stores it in the database, and another one retreives it from the
database and deserializes it.
Oh yeah, the database I am using is SQL Server 2005, and the objects
are stored in fields of type varbinary(max).
Are there any experts out there on VB Serialization who could help? I'm
still kinda new to this...
thanks.
then retrieving them afterwards.
Serializing (using a BinaryFormatter) and storing the objects seems to
give me no problems, but when I try to deserialize, I get "The input
stream is not a valid binary format." exception (followed by a long
string of bytes that represent the object and it seems to be correct).
What is really puzzling me is that I ran a test and when I deserialize
the objects immediately (that is, I don't store them to the database, I
just deserialize them right away), everything seems to work fine. I
only seem to have problems when one procedure serializes the object and
stores it in the database, and another one retreives it from the
database and deserializes it.
Oh yeah, the database I am using is SQL Server 2005, and the objects
are stored in fields of type varbinary(max).
Are there any experts out there on VB Serialization who could help? I'm
still kinda new to this...
thanks.