Android Question Return value

Discussion in 'Android Questions' started by Benjie, Jul 10, 2019.

  1. Benjie

    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 BitmapAs Byte()
        
    Dim out As OutputStream
        out.InitializeToBytesArray(
    0)
        
    Image.WriteToStream(out, 100"JPEG")
        out.Close
        
    Return out.ToBytesArray
       
    End Sub
    Thanks!
     
    Last edited: Jul 10, 2019
  2. DonManfred

    DonManfred Expert Licensed User

    Code:
    dim bytes() as Byte = ImageToBytes(img)
     
  3. Benjie

    Benjie New Member Licensed User

    please give some example, where do i put this codes, thanks! :)
     
  4. DonManfred

    DonManfred Expert 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.
     
  5. Benjie

    Benjie New Member Licensed User

    :)
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Benjie likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice