public void SaveToFile(string filename) { if (bw != null) { System.IO.File.WriteAllBytes(filename, bw.ToArray()); } }