views:

39

answers:

1

Thought I could use the BinaryWriter but haven't had any luck. Suggestions?

A: 

You need an instance of a Stream derived class to provide the Stream implementation. MemoryStream is the ticket:

var stream = new MemoryStream(bin.ToArray());

where "bin" is your Binary instance.

Hans Passant
Thank you for supporting my SO record. http://meta.stackoverflow.com/questions/56217/the-true-unsung-heros/56322#56322
Hans Passant