using(var ms = new MemoryStream())
{
st.CopyTo(ms);
return ms.ToArray();
}