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.
Response.Clear() is there for the rescue.