Public Function Base64toImage(ByVal Base64 As String) As System.Drawing.Image Dim imgSig As System.Drawing.Image Dim MemStream As System.IO.MemoryStream = New System.IO.MemoryStream Dim utf8 As UTF8Encoding = New UTF8Encoding() 'Convert Base64 string to Memory Stream MemStream = New System.IO.MemoryStream(utf8.GetBytes(Base64)) 'creates image imgSig = System.Drawing.Image.FromStream(MemStream) MemStream.Close() Return imgSig End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)