XML data is just formatted text, and a "blob" is normally just binary data, so the conversion is pretty simple:
string s = ...
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(s);
And to reverse it:
byte[] bytes = ...
string s = System.Text.Encoding.UTF8.GetString(bytes);