I want to convert byte array to image as I say on title and I tried this,
byte[] data = (byte[]) dt.Rows[0]["IMAGE"];
MemoryStream ms = new MemoryStream(data);
pictureBox1.Image = Image.FromStream(ms);
but I m working on framework 3.5 compact for Win CE OS. and it gives error for "Image.FromStream" Compiler says;
Error 2 'System.Drawing.Bitmap' does not contain a definition for 'FromStream' C:\Users....\Fonksiyonlar.cs 93 75 Terminal
Can you offer any other way to do this?
I don't have Windows CE here, but I believe you can try:
pictureBox1.Image = new Bitmap(ms);