Update image in ASP.NET page from memory without refreshing the page.
Posted
by ZeeMan
on Stack Overflow
See other posts from Stack Overflow
or by ZeeMan
Published on 2010-04-03T14:50:47Z
Indexed on
2010/04/03
14:53 UTC
Read the original article
Hit count: 309
I have a command line C# server and an ASP.NET client, they both communicate via .NET Remoting. The server is sending the client still images grabbed from a webcam at say 2 frames a second. I can pass the images down to the client via a remote method call and the image ends up in this client method:
public void Update(System.Drawing.Image currentFrame)
{
// I need to display the currentFrame on my page.
}
How do i display the image on the a page without saving the image to the hard disc? If it was a winForms app i could pass currentFrame to a picturebox ie.
picturebox.Image = currentFrame
.The above
Update
method gets fired at least 2 times a second. If the client was a winForms app i could simply putpicturebox.Image = currentFrame
and the current frame on the screen would automatically get updated. How do i achieve the same effect with ASP.NET? Will the whole page need to be reloaded etc?
© Stack Overflow or respective owner