I am saving Image in a database in a wpf App. but when i retrieve it it gives me type cast error.
Unable to cast object of type 'System.String' to type 'System.Byte[]'.
i am using following code to type cast
byte[] data = (byte[])ds.Tables[0].Rows[0]["ProjectIcons"];