Answers for "c# image from resources to byte[]"

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

Code answers related to "c# image from resources to byte[]"

C# Answers by Framework

Browse Popular Code Answers by Language