C# Convert a Base64 -> byte[]

I have a Base64 byte[] array which is transferred from a stream which i need to convert it to a normal byte[] how to do this ?


You have to use Convert.FromBase64String to turn a Base64 encoded string into a byte[].


This may be helpful

byte[] bytes = System.Convert.FromBase64String(stringInBase64);