protected void Page_Load(object sender, EventArgs e) { System.Diagnostics.Debug.Print("nahi horaha"); ServiceReference1.ServiceClient fromService = new ServiceReference1.ServiceClient(); String userLen = "5"; imageString = fromService.GetVerifierString(userLen); var img = System.Drawing.Image.FromStream(fromService.GetImage(imageString)); var path = Server.MapPath("/images/verifier.jpg"); img.Save(path); Image1.ImageUrl = "/images/verifier.jpg"; //pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize; }