C
cashdeskmac
Hi,
I have a set of images in a database and I am using a DataReader to retrive
them:
SqlDataReader dr = command.ExecuteReader();
if (dr.Read())
{
Byte[] b = (Byte[])dr["img_data"];
MemoryStream ms = new MemoryStream(b);
Image img = Image.FromStream(ms);
//create the html for the span
imageholder.InnerHtml = "";
}
Now that I have the Image, how can I assign it to the InnerHtml of the span
called imageholder (which has the attribute runat="server")?
I have a set of images in a database and I am using a DataReader to retrive
them:
SqlDataReader dr = command.ExecuteReader();
if (dr.Read())
{
Byte[] b = (Byte[])dr["img_data"];
MemoryStream ms = new MemoryStream(b);
Image img = Image.FromStream(ms);
//create the html for the span
imageholder.InnerHtml = "";
}
Now that I have the Image, how can I assign it to the InnerHtml of the span
called imageholder (which has the attribute runat="server")?