The length of the string must be an even multiple of 4, preferably with an error handling
Try Me.data = System.Convert.FromBase64String (buffer.Substring (start, 8 * (buffer.Substring (start) .Length / 8))) Catch exp As System.ArgumentNullException System.Console.WriteLine ( "Base 64 string is Null. ") Return Catch Exp As System.MMATEXCEPTION System.Console.Writeline (" Base 64 Length Is Not 4 or IS " _" Not An Even Multiple of 4. "Return End Try