Hello sir, I am trying to simply retrieve the image from the database. but it will show an error in the below code that parameters is not valid. please provide any solution... public partial class Register_Presentation_ar : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { DataTable dt= getImagesName(); byte[] barrImg = (byte[])dt.Rows[0]["Images"]; MemoryStream mstream = new MemoryStream(barrImg); Repeater1.DataSource="mstream"; Repeater1.DataBind(); } public DataTable getImagesName() { connection con = new connection(); con.getconnectionstring(); SqlCommand sqlcmd; sqlcmd = new SqlCommand("getImageName", connection.con); sqlcmd.CommandType = CommandType.StoredProcedure; DataTable ds = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(sqlcmd); da.Fill(ds); return ds; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)