I am working with C++/CLI which is similar to C#. I am using the following method to convert Base64 encoded text to bytes.
auto bytes = Convert::FromBase64Str