I am trying to return a substring of a byte array.
(another application is pushing data into my database, where files have a prepended GUID attached to it. I want to remove this GUID, when giving the file back to the user)
if (bytes.Length > 38)
{
string s = System.Text.Encoding.ASCII.GetString(bytes);
returnBytes = Convert.FromBase64String(s.Substring(38));
}
Is it possible to do this without Text Encoding? Maybe via Array.Copy() ?
Thanks for any advice.