I have loaded an byte array image from a web service to my asp.net website. I need to display it on the web page as soon as execute the web service.
I have tried using generic handler, but i could not do it since there wasn't way to pass byte[] image into the generic handler
void Button2_Click1(object sender, EventArgs e)
{
this.verifyTemplates();
byte[] userImg;
try
{
matchTemp.templateService hs = new matchTemp.templateService();
bool s1 = hs.matchTemplates(template, out userID, out userName, out userImg);
// userImg is the byte image i need to display
}
catch(Exception exc)
{
// vLabel.Text = exc.Message;
}
}
image
control and point its source to aHttpHandler
that returns the dynamic image. There are many questions and answers on SO describing how to achieve that.