I want to Display images into repeater control from Database with the help of ASHX file. I am beginner to ASP.net. It would be really helpful if you can provide me any code example.
EDIT, from comments
I am trying to get images from database into repeater control.
This is what I did in aspx.cs file
cnn.Open();
SqlDataAdapter da1 = new SqlDataAdapter("select * from carousel", cnn);
DataTable dt1 = new DataTable(); da1.Fill(dt1);
Rp1.DataSource = dt1;
Rp1.DataBind();
this is my Repaeter
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ID")%>'/>
But I am Getting src="system.Byte"
in results.
I know This is because the value coming from the database is a byte array representing the actual data of the image. So I want to know about ASHX