Private Function BitmapFromBase64(ByVal Base64 As String) As System.Drawing.Bitmap
Dim oBitmap As System.Drawing.Bitmap
Dim Memory As New System.IO.MemoryStream(Convert.FromBase64String(Base64))
oBitmap = New System.Drawing.Bitmap(Memory)
Memory.Close()
Memory = Nothing
Return oBitmap
End Function
Private Function BitmapToBase64(ByVal Picture As System.Drawing.Bitmap) As String
Dim Base64 As String
Dim Memory As New System.IO.MemoryStream()
Picture.Save(Memory, Imaging.ImageFormat.Jpeg)
BitmapToBase64= System.Convert.ToBase64String(Memory.ToArray)
Memory.Close()
Memory = Nothing
End Function
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6