I have code which has generated an image of a Qr Code into the .NET Bitmap object. The code which generates this is called when a button is pressed on the page, like so:
public ActionResult GenerateQrCode()
{
Bitmap qrCodeImage = Generate();
return RedirectToAction("QrCodeGenerator");
}
It's a method in an MVC controller for the page.
When the button is pressed, an image is generated, and we are navigated back to the page.
So from here, what steps do I need to take to output this bitmap image to my web page (a .cshtml file). Bearing in mind that I am using ASP.NET MVC.
One thing I seen online is that people were saving the image to the 'Response.OutputStream'. I'm not quite sure if that is relevant to ASP.NET MVC.
Thanks