How can i read binary data

G

Guest

I store an object as a binary data in db. I want to read that data and
deseralize it to get back my object. I saw the examples about that on forums,
but they write the data to a file which they create on the local drive. I
want to get the data in a byte array form (byte[] xxx) and deserialize it
without writing it on a file. How can i do that.

Thanks...
 
C

Chris

basulasz said:
I store an object as a binary data in db. I want to read that data and
deseralize it to get back my object. I saw the examples about that on forums,
but they write the data to a file which they create on the local drive. I
want to get the data in a byte array form (byte[] xxx) and deserialize it
without writing it on a file. How can i do that.

Thanks...

Look at the binarywriter and binaryreader classes in .net it has
examples on in the help file for it.

Chris
 

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