CSharp examples for System.IO:BinaryWriter
Write byte array to BinaryWriter
using System.IO;//from w ww . j av a 2 s. c o m using System; public class Main{ public static void Write(BinaryWriter bw, byte[] b) { bw.Write((byte)b.Length); bw.Write(b); } }