System.IO.File.ReadAllBytes(string filePath); //The other way around: System.IO.File.WriteAllBytes(string filePath, byte[] sourceBytes);