Convert image to binary?

c#

Solution

Since you have a file use:-

 Response.ContentType = "image/png";
 Response.WriteFile(physicalPathOfPngFile);

Problem

I have an image (in .png format), and I want this picture to convert to binary. How can this be done using C#?

Original source