public byte[] ToByteData() { MemoryStream ms = new MemoryStream(); ToStream(ms); return ms.ToArray(); }