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.


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
Thanks!
 
Last edited:

Benjie

New Member
Licensed User
No. How should i? I do not have this code in my apps. It is YOU... So it should be YOU who should know where you want to use it.

The question in this thread was on how to get the result from the given sub and i answered it with a working code.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…