Answers for "c# download image into byte array"

C#
6

c# image to byte array

public byte[] ImageToByteArray(System.Drawing.Image imageIn)
{
   using (var ms = new MemoryStream())
   {
      imageIn.Save(ms,imageIn.RawFormat);
      return  ms.ToArray();
   }
}
Posted by: Guest on May-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language