trojan001
جمعه 27 دی 1392, 18:58 عصر
سلام دوستان یه سوال داشتم ببینید من با وب کلاینت می زنم یه عکسی رو از یه ادرسی داونلود کنه بد تو پیکچر باکس نشون بده حالا بعضی مواقع این صفحه not found می شه چیزی باس داونلود نداره بد سافت ارورو می ده کهThe remote server returned an error: (404) Not Found. خوب چی کار کنم که اینجوری شد سافت به مشکل نخوره ؟
WebClient avatar = new WebClient();
avatar.DownloadFile("http://avatar.nimbuzz.com/getAvatar?jid=" + textBox1.Text + "@nimbuzz.com", "reject.jpg");
pictureBox1.ImageLocation = "reject.jpg";
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
بیبن جا textbox1.text اگه یزاری poya سافت عکس پیدا نمی کنه و ارور می ده ولی اگه بزاری poya01 عکس پیدا می کنه و ارور نمی ده تو مروگر بزنید اینو معلومه تفاوتش
WebClient avatar = new WebClient();
avatar.DownloadFile("http://avatar.nimbuzz.com/getAvatar?jid=" + textBox1.Text + "@nimbuzz.com", "reject.jpg");
pictureBox1.ImageLocation = "reject.jpg";
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
بیبن جا textbox1.text اگه یزاری poya سافت عکس پیدا نمی کنه و ارور می ده ولی اگه بزاری poya01 عکس پیدا می کنه و ارور نمی ده تو مروگر بزنید اینو معلومه تفاوتش