Bonjour,

Je charge une image à partir d'un chemin extrait d'une base de données.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
			DataSet ds = Box.GetDataSet("tbMatchs",requete,this.Connexion.ConnectionString);
 
			MessageBox.Show(repertoire+ds.Tables["tbMatchs"].Rows[0]["Image1"].ToString()+" et "+repertoire+ds.Tables["tbMatchs"].Rows[0]["Image2"].ToString());
 
			//-- Image --//
			FileStream photoStream = new FileStream(repertoire+ds.Tables["tbMatchs"].Rows[0]["Image1"].ToString(), FileMode.Open);
			pictureBox1.Image = Image.FromStream(photoStream);
			photoStream.Close();	
			pictureBox1..Refresh();
 
			FileStream photoStream2 = new FileStream(repertoire+ds.Tables["tbMatchs"].Rows[0]["Image2"].ToString(), FileMode.Open);
			pictureBox2.Image = Image.FromStream(photoStream2);
			photoStream2.Close();
J'affiche les chemins... ils sont corrects. Mais il ne charge pas les bonnes images... Comment est-ce possible ?