c# convert string to bytes 64 code example Example: base64 string to byte array c# byte[] l_Data = Convert.FromBase64String(l_PlainText);