You can use the LoadXml method:
byte[] data = ... fetch from your db string xml = Encoding.UTF8.GetString(data); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xml);
UPDATE:
As stated in the comments section here, how to load an array of bytes into a DataTable :
byte[] data = ... fetch from your db DataTable dt = ... fetch from somewhere or instantiate a new; using (var stream = new MemoryStream(data)) { dt.ReadXml(stream); }
source share