Skip to main content

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

By August 16, 2016October 13th, 2018No Comments

I was working on API project which was returning binary data and my goal was to convert bytes to image on the fly using

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

Response.Clear() is there for the rescue.

I code - I write - I mentor - Web Enthusiast