问题其实很简单,但是自己当时很懵,直接上代码说原因。
WebClient web = new WebClient();
web.Credentials = new NetworkCredential("users", "pass");
var bytes = web.DownloadData(ListImagePaths[index].ToString());
this.pictureBox1.Image = Bitmap.FromStream(new MemoryStream(bytes));
当时一直报错,这里的用户名密码是ftp服务的用户名密码