| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 
 | public Stream ImgStream
    {
        get { return this.ViewState["ImgStream"] as Stream; }
        set { this.ViewState["ImgStream"] = value; }
    }
protected void btnChargerImage_Click(object sender, EventArgs e)
    {
        this.imgPhotoAgent.ImageUrl = this.fuImage.PostedFile.FileName;
        if (this.imgPhotoAgent.ImageUrl != String.Empty)
        {
            this.ImgStream = this.fuImage.PostedFile.InputStream;//ligne du plantage
            this.ImgLen = fuImage.PostedFile.ContentLength;
            this.panelAgentModif.Visible = true;
            this.panelResultat.Visible = true;
        }
    } | 
Partager