public static string EncodeToBase64(byte[] input) { string res = Convert.ToBase64String(input, 0, input.Length); return res; }