Autor Beitrag
k-weddige
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 49

Win Vista Business
C# (VS 2008 Professional)
BeitragVerfasst: Mi 19.07.06 19:12 
Hi!

Ich habe ein Bild als "Bild - blob" gespeichert. Jetzt will ich es in einer pictureBox anzeigen.
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
mySqlCommand2.CommandText = "SELECT * FROM bilder WHERE Person='" +
  dataSet1.Tables[0].Rows[listBox1.SelectedIndex]["ID"].ToString() + "'";
mySqlDataAdapter2.Fill(dataSet2);
if (dataSet2.Tables[0].Rows.Count > 0)
{
  //pictureBox.Image = ???
  //dataSet2.Tables[0].Rows[0]["Bild"] Wie bekomme ich das jetzt in die pictureBox?


Ich steh grad irgendwie auf'm Schlauch.

TIA, Konstantin

Moderiert von user profile iconraziel: Code- durch C#-Tags ersetzt

_________________
Meine Programme sind perfekt, der Computer versteht sie bloß nicht.