I have a dataset ds which contains Image which i want to display , look at the code below
However this throws an error which i am attaching ...
Help..??
int uid = int.Parse(Session["UserId"].ToString());ds = new DataSet();string urprofile = "SELECT * FROM [Mimage] WHERE UID=" + uid + "";ds = dbClass.ReturnDS(urprofile);var image = ds.Tables[0].Rows[0]["Image"];Thumbnail.DataValue =(byte[])image;Help..??