C Sharp And Ms Access Database Tutorial 10 How To Convert Byte Array To Image

C# And Ms Access Database Tutorial #10 – How To Convert Byte Array To Image

VIDEO TUTORIAL

C# And Ms Access Database Tutorial #10 – How To Convert Byte Array To Image

This Tutorial Shows How To Convert Byte Array To Image In C# Windows Forms Application using visual studio 2010.

C# SOURCE CODE

        //Function For Converting Byte Array To Image
        public Image convertByteArrayToImage(byte[] byteArrayToConvert)
        {
            MemoryStream convertByteArrayToImageMemoryStream = new MemoryStream(byteArrayToConvert);
            Image convertedImage = Image.FromStream(convertByteArrayToImageMemoryStream);
            return convertedImage; 
        }

Leave a Reply

Your email address will not be published. Required fields are marked *