I would like to place the Mathematica Graphics output in my ASP.NET WebApplication using Wolfram.NETLink reference.
I tried to use the mathKernel.Graphics property to get the image from the Mathematica graphics output during the last call to mathKernel.Compute.
The problem is that I need to refer a URL for my System.Web.UI.WebControls.Image, and the mathKernel.Graphics property returns a System.Drawing.Image.
I thought about saving the image returned to a temporary file, so that I could get the URL, but I don't know how to do this, or if maybe there is an easier way to place the image in my ASP.NET WebAplication.
P.D. This is the part of the code where I try to place the Mathematica Graphics output in my ASP.NET WebApplication:
private void computeButton_Click(object sender, System.EventArgs e)
// Abort the computation
// Set the link that this MathKernel will use
mathKernel.Link = iKernelLink;
// Perform the computation
// Populate the boxes with results
// ??? = mathKernel.Graphics
// graphicsImage.ImageUrl = ???