Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c#image to bytes


public byte[] ImageToByteArray(System.Drawing.Image imageIn)
{
   using (var ms = new MemoryStream())
   {
      imageIn.Save(ms,imageIn.RawFormat);
      return  ms.ToArray();
   }
}

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #bytes
ADD COMMENT
Topic
Name
3+4 =