Answers for "create image from bytes c#"

C#
6

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 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

C# Answers by Framework

Browse Popular Code Answers by Language