public static byte[] GetBitStream(string fileName) { using (MemoryStream ms = new MemoryStream()) { LargeIcon.Save(ms, ImageFormat.Bmp); return(ms.ToArray()); } }