7

以下在我的 Windows 7 开发机器上运行良好,但是在 Windows XP 上运行时,我得到最后一行的异常声明“参数无效”?

private string base64String = "AAABAAQAEBAAAAAAAABoBQAARgAAABAQAAAAAAAAaAMAAK4FAAAgIAAAAAAAAKgIAAAWCQAAICAAAAAAAACoDAAAvhEAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAAAACmyaQAocifAKDGnQCexJsAl8CUAJe+lACRvI4AjrqKAIm3hgCFsoEAha6CAIKyfgB6sHYAfK15AHqudgB2rXMAcKJsAG6qagBup2kAaqZlAGejYgBjol4AZ59jAGWWYQBimV4AX55bAFiZUwBekVsAXJdXAFGYTABdi1oATZZJAEqSRABGkEAARJA+AEOOPQBEhj8AOIkxAD6HOAA7hjUANoMwAC2CJwBCfz0AN30zADdrNAAreiUAKnElACZ1IAAvaysAKG8iACZoIAAkdh4AIW8cACZfIwAfbxkAHW0XAB1gGAAXYBEAEmQOAB1cGQAcXRYAHVQaABdbEgATUxAAEU8OABBHDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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E9PTwAAAAAAAHmwdXmwdXmwdXmwdYO2f3mwdXmwdQAAAAAAAAAAAAAAAHmwdTOHLCmBIimBIimBIimBIimBIimBIih7IRtKFxg+FRg+FRg+FR9FGyZRIzFpLTdvM0JxPgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO2fymBIimBIimBIimBIimBIimBIimBIimBIimBIimBIj2NN1GZTHmwdY28iqHHngAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGWkYCmBIimBIimBIimBIimBIimBIit3JXmwdQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHmwdTOHLCmBIimBIix/JW+qa3mwdQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHmwdXmwdXmwdXmwdQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////n////x////8f////H////x////4f///+H////h////4P///+D////A////wH///8B////APwf/wDgD/8AAB//AAP//wAP/P8AP/h+AH/wAAB/8AAAf/AAAH/wAAAf+AGAAAwHgAAf/8AAP//gD///8B////h///////";

byte[] bytes = Convert.FromBase64String(base64String);
System.IO.MemoryStream ms = new System.IO.MemoryStream(bytes);
System.Drawing.Image b = System.Drawing.Image.FromStream(ms, false, false);

这个 base64 字符串在两个操作系统上都可以正常工作。它也是一个图标,但尺寸更小:

"AAABAAEAEBAAAAEACABoBQAAFgAAACg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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A/v7+/v7+/ggD/v7+/v7+/v7+/v7+/gAkDf7+/v7+/v7+/v7+/v4BNxj+/v7+/v7+/v7+/v7+AzQY/v7+/v7+/v7+/v7+/hA6F/7+/v7+/v7+/v7+/v4TOh7+/v7+/v7+/v7+/v7+ETc9Cf7+/v7+/v7+/v7+/g8tQR7+AxYcFhP+/v7+/v4MJTg1KjYtGg4GCwj+/v7+FCkvPDEUA/7+/iswCgkbKjMpMzEF/v7+/v4pLjs7OS0jHy1AEP7+/v7+GRQdISAVDxMjPywJAgMDBv4HDg8DAP4PEyY+Pi0oJxT+/v7+/v7+BxQUIiALAwL+/v7+/v7+/v4EEAn+/v7+/v5/AAD8fwAA/H8AAPx/AAD8fwAA/H8AAPw/AAD8IAAA/AAAADwHAAAAHwAAAB8AAAAAAACCAAAA/gEAAP8fAAA="
4

2 回答 2

3

XP 真的很长。它缺少的一件事是 gdiplus.dll 的 1.10 版,这是对首先随 Vista 一起提供的 GDI+ 的更新。该版本中的许多修复,其中一个它现在实际上支持 ImageFormat.Icon。

您的图像数据代表一个 .ico 文件。请改用 Icon(Stream) 构造函数。您可能仍然对 24bpp 图标有问题,我无法再检查了。

于 2013-03-18T18:18:04.530 回答
0
using (MemoryStream ms = new MemoryStream())
    {
        image.Save(ms,System.Drawing.Imaging.ImageFormat.Jpeg);
        ms.Seek(0,0);
        byte[] data = new byte[0];
        data = ms.ToArray();          
    }

我想访问括号外的数据。怎么办

于 2014-05-01T15:20:39.557 回答