when i add DBRequestManager.bas to my b4j project, i got error message "Unknown type: bitmap"
"Are you missing a library reference?"
my b4j version is 4.20.
please help me.
"Are you missing a library reference?"
B4X:
Public Sub ImageToBytes(Image As Bitmap) As Byte()
Dim out As OutputStream
out.InitializeToBytesArray(0)
Image.WriteToStream(out, 100, "JPEG")
out.Close
Return out.ToBytesArray
End Sub
'Converts a bytes array to an image (for BLOB fields).
Public Sub BytesToImage(bytes() As Byte) As Bitmap
Dim In As InputStream
In.InitializeFromBytesArray(bytes, 0, bytes.Length)
Dim bmp As Bitmap
bmp.Initialize2(In)
Return bmp
End Sub
my b4j version is 4.20.
please help me.