It is theoretically impossible to tell if the data is Base64 or not. This format does not have any indicator of the format, and for a good reason. The whole idea of format detection is wrong and cannot be strictly implemented. In all cases, you need some
meta-data.
For base64 conversions use the class System.Convert, see
http://msdn.microsoft.com/en-us/library/system.convert.aspx[
^]. You can use its methods:
<code>
FromBase64CharArray,
FromBase64String
,
ToBase64CharArray
,
ToBase64String
.
—SA