如何解决System.Drawing参数无效 当我使用代码时:
string img2 = "http://13.228.146.249:8080/jcr/groups/629.png;
byte[] toBytes = Encoding.ASCII.GetBytes(img2);
if (toBytes != null)
{
MemoryStream ms = new MemoryStream(toBytes);
ms.Position = 0;
picboxserver.Image = Image.FromStream(ms);
}
picboxserver是图片框类型。
答案 0 :(得分:0)
您希望在PictureBox中的http://13.228.146.249:8080/jcr/groups/629.png
?在这种情况下,只需使用Load()
-Function:
picboxserver.Load("http://13.228.146.249:8080/jcr/groups/629.png");