get Bitmap from byte array - CSharp System.Drawing

CSharp examples for System.Drawing:Image Convert

Description

get Bitmap from byte array

Demo Code


using System.Drawing.Imaging;
using System.Drawing;
using System.Text;
using System.Collections.Generic;
using System.IO;//from w w  w . ja  va2s .  c  o  m
using System;

public class Main{
        public static Bitmap getBitmap(byte [] arrData){
            MemoryStream ms = new MemoryStream(arrData);

            Bitmap bmp = new Bitmap(ms);
          
            return bmp;
        }
}

Related Tutorials