I m trying to retry images from database. My code is as below
DataTable tab = obj.createtable("Select pics from picto");//obj is the class in which createtable(string query) is function which returns datatable according to query byte ImgByte = (byte)tab.Rows; FileStream fs = new FileStream("test.GIF", FileMode.Create); fs.Write(ImgByte, 0, ImgByte.Length); fs.Close(); fs = null; pictureBox2.Image = Image.FromFile("test.GIF");
the last line give "out of memory " error.
Plz help me