[ASP.NET] How to convert System.Byte[] to Image using c#

I was working on API project which was returning binary data and my goal was to convert bytes to image on the fly using asp.net/c#

Here is the quick snippet to write bytes array as an image using HTTP Response.

Cannot be displayed because it contains errors

Response.Clear() is there for the rescue.