Answers for "c# how to convert image to 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
0

c#image to bytes

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

Code answers related to "c# how to convert image to byte array"

C# Answers by Framework

Browse Popular Code Answers by Language