Good day!
Im a newbie. i just want to know how to get the return value for this codes? so that i can put it on the database.
Thanks!
Im a newbie. i just want to know how to get the return value for this codes? so that i can put it on the database.
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
Last edited: