Thought I could use the BinaryWriter but haven't had any luck. Suggestions?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With