I have code that generated a Qr image in a .NET Bitmap object. The code that generates this is called when a button is clicked on the page, for example:
public ActionResult GenerateQrCode() { Bitmap qrCodeImage = Generate(); return RedirectToAction("QrCodeGenerator"); }
This is the method in the MVC for the page.
When you click the button, an image is created, and we again go to the page.
So, from here, what steps do I need to take to output this bitmap to my web page (.cshtml file). Whereas I use ASP.NET MVC.
One thing I've seen on the Internet is that people saved the image in Response.OutputStream. I'm not quite sure if this applies to ASP.NET MVC.
thanks
source share