Hi,
I'm trying to encode a bitmap to Base64 string.
Does anyone have a good answer how it's done?
Public Sub ConvertImageToStrong(objImage As Bitmap) As String
Dim arrBitmap() As Byte
Dim strBitmap As String
strBitmap = ......
Return strBitmap
End Sub
I can't use Base64Image lib, since I have to convert from bitmap in memory and not from file.
I could use Base64 library, but must then convert bitmap to byte array. Can find method for this.
Thank you in advance.
I'm trying to encode a bitmap to Base64 string.
Does anyone have a good answer how it's done?
Public Sub ConvertImageToStrong(objImage As Bitmap) As String
Dim arrBitmap() As Byte
Dim strBitmap As String
strBitmap = ......
Return strBitmap
End Sub
I can't use Base64Image lib, since I have to convert from bitmap in memory and not from file.
I could use Base64 library, but must then convert bitmap to byte array. Can find method for this.
Thank you in advance.