Android Question Return value

Benjie

New Member
Licensed User
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.


Code:
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
Thanks!
 
Last edited:
Code:
dim bytes() as Byte = ImageToBytes(img)
 
Upvote 0
Back
Top