hi i tried to read images stores as an OLE object in the database using this code://ds is a datasetbyte[] rawData = (byte[])this.ds.Tables[0].Rows[this.rowIndex][6];System.IO.MemoryStream stream = new System.IO.MemoryStream(); stream.Write(rawData, 0,rawData.Length);Bitmap bmp = (Bitmap)Image.FromStream(stream);
stream.Close();but the problem is that the line of Bitmap bmp =(Bitmap)Image.FromStream(stream); causes an error: invalid parameter ......i tried to check the legnth of byte array to be sure that it reads something from the databae and i found it something near to 17000 bytes .....so at least the code read data ,but why this error messagethanks for help