1
byte[] bytes = Convert.FromBase64String(in);
Image image = Image.FromStream(new MemoryStream(bytes));
MemoryStream objMS = new MemoryStream();
image.Save(objMS, System.Drawing.Imaging.ImageFormat.MemoryBmp);
string out = Convert.ToBase64String(objMS.ToArray())
objMS.Close();
上述代碼失敗,出現非常無益的錯誤消息:C# - Base64編碼JPEG到Base64編碼BMP
'Value cannot be null. Parameter name: encoder'