2PTTechnology

The platform that enables you to build rich, interactive communities
Welcome to 2PTTechnology Sign in | Join | Help
in Search

convert byte[] to Bitmap

Last post 12-30-2008, 9:59 AM by pskobel. 0 replies.
Sort Posts: Previous Next
  •  12-30-2008, 9:59 AM 198

    convert byte[] to Bitmap

    // byte[] ImgIn

    System.IO.MemoryStream ms = new System.IO.MemoryStream(ImgIn);
    System.Drawing.Bitmap b = (System.Drawing.Bitmap)System.Drawing.Image.FromStream(ms);

    b.Save(string.Format(@"c:\Signatures\{0}.bmp", sID), system.Drawing.Imaging.ImageFormat.Bmp);

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems