How To Convert Image To Byte Array In Visual Basic Net

How To Convert Image To Byte Array In Visual Basic .Net

How To Convert Image To Byte Array In Visual Basic Net

This Tutorial Shows How To Convert Image To Byte Array In Visual Basic Net.

Visual Basic .Net SOURCE CODE


    Public Function convertImageToByteArray(ByVal imageToByte As Image) As Byte()
        Dim ms As New MemoryStream()
        imageToByte.Save(ms, imageToByte.RawFormat)
        Return ms.ToArray()
    End Function
READ MORE  How To Read Data From A Text File In Java Using FileReader Class

Leave a Reply

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