C#解碼base64編碼的二進制數據的代碼

將做工程過程常用的代碼片段做個珍藏,下邊代碼段是關於C#解碼base64編碼的二進制數據的代碼。
using System;
static class MyModClass
{
public static byte[] Base64DecodeString(this string inputStr)
{
byte[] decodedByteArray = Convert.FromBase64String(inputStr);
return (decodedByteArray);
}
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章