Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

converting bitmap to byte array c#

public static byte[] ImageToByte(Image img)
{
    ImageConverter converter = new ImageConverter();
    return (byte[])converter.ConvertTo(img, typeof(byte[]));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #converting #bitmap #byte #array
ADD COMMENT
Topic
Name
3+8 =