streamToImage

 <Extension()> _
    Public Function toImage(bytes As Byte()) As Image
        Try
            Return Image.FromStream(New IO.MemoryStream(bytes))
        Catch ex As Exception
            Return Nothing
        End Try
    End Function
Example:
pic.image = MyByte.ToImage

Description

Converte Array stream em imagem

Details

  • Author: Alex Martins
  • Submitted on: 8/23/2017 8:30:27 PM
  • Language: VB
  • Type: Byte
  • Views: 251

Double click on the code to select all.

 

;