Wednesday, July 9, 2014

How to convert Byte Array to Image in VB.NET?

You can convert byte array to Image like this.

Public Function byteArrayToImage(ByVal byteArray As Byte()) _
   As System.Drawing.Image

   Dim ms As New System.IO.MemoryStream(byteArray)
   Dim returnImage As System.Drawing.Image = System.Drawing.Image.FromStream(ms)
   Return returnImage
End Function

No comments:

Post a Comment

React-select is very slow on larger list - Found solution - using react-window

 I had more than 4000 items in searchable dropdownlist. I have used react-select but it was very slow. finally I found complete solution to ...