我想将 base64string 转换为位图,并且我正在执行以下方法,但它不起作用。
public static BitmapImage base64image(string s)
{
if (s.Length > 0)
{
byte[] fileBytes = Convert.FromBase64String(s.Trim('\0'));
// byte[] fileBytes = new byte[s.Length * sizeof(char)];
//System.Buffer.BlockCopy(s.ToCharArray(), 0, fileBytes, 0, fileBytes.Length);
using (MemoryStream ms = new MemoryStream(fileBytes, 0, fileBytes.Length))
{
ms.Write(fileBytes, 0, fileBytes.Length);
BitmapImage bitmapImage = new BitmapImage();
bitmapImage.SetSource(ms);
return bitmapImage;
}
}
else
{
return null;
}
}
我的base64字符串是
string s="iVBORw0KGgoAAAANSUhEUgAAAE0AAABACAYAAABfl/puAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAH1pJREFUeF7tmwd4VVXW95NQVWyIioiMCljHCmJBEVFERVCs4FhwHMCCAkoNivTeAgFSSCUhkEZI7z03yU3vvSc3vff6e9e5eVUYFcIY5/veeWY/z3rOLeeee/b/rPrfa+v29va66erq3qXz3zFwBHp6eor477giBHQEtIwr+sV/T+ZPAa23u/c/GtpBB62ru4rs0iAKKtQ0NGgEvL7/OAAHFbQeuohJN8bCdwmu8RsIyzhKdnm4gNb8HwXcoILW2dOIbdTfOOA7BeOw2TilfYZjzHIcgozJKYunoiKFltZ6eno7aWqXI93/J8EcVNBq2nNxTP6IkKzN5JR4kdMSxAnbPdw7ez177fYQW2xIQOpekvNcCcu0JDcvlN6u/3vADSpo5U3ZlNR4UNUcTEqVITaqr1m6ez33z9vL3zevIK78IL7p2zgVuhiHmKW4hK8jKNGE+sbiX2lct4DZ2dFJd/f/f6AOCmiNHQVkVDgRVWpGaPYeTqsXcjzkFVYav8Fyw93sMFYx7/1PsHT7mpQGc6Ly92LsPZ/d7k9xxG0RpZpfsp6+vj7y8/KJU8eRnJhCamoqKSkpJCcna48/vVY+z83JJS83n8L8QsrLy6mq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Izt8bikYpG2kL8otITU4jIlxaRwMC8Pf30+4yUcv9pmdm94PWT/z94TEg0JR/UZ52a0ur9LZWa7dBx8vu3GBpjPOUxdkzZ+0xNbPikIEhe7f/wM7vv2Drmnf5/tv30F+5AP0Vb7Jx1dva95tXL2L3phXs2fEjhseMMLewxt7eQds8FxEaLlt8krUtBXWSXykbJQZqnj1ixj093dpddIpGKfsTFFHe9w7YxAeG54BBu/Byyv7vLtmR1i5b+xoapM9VqJiS4mJyZLKpadnC7+cSm5BKlPSeRUXF/q/EielIv6t8npyaRnp6FgXZ+ZRIkqs8CGVHcafsE1X80YUNdAObxr/3LAW0wacB/r1z+Lf/mwLa4C0I/ttv///NH/4PGV2zXGJJhfQAAAAASUVORK5CYII="
但它给出了一个例外,例如“输入不是有效的 Base-64 字符串,因为它包含非 base 64 字符、两个以上的填充字符或填充字符中的非法字符。”
我怎么解决这个问题?