How to load Image Source from Byte[] in Razor? | ASP.Net MVC Interview Question

Below razor code snippet shows a simple way to render an image tag with the source generated from byte[] in ASP.Net MVC
<img src="data:image;base64,@System.Convert.ToBase64String(Model.Image)" />