Android Question job.download() - error: Array Expected (with new v5.02)

Discussion in 'Android Questions' started by achtrade, Jun 19, 2015.

  1. achtrade

    achtrade Active Member Licensed User

    Before b4a v5.00 it was working fine.

    help please.
     

    Attached Files:

  2. giga

    giga Well-Known Member Licensed User

    Just a thought Did you try it like this?
    Code:
    Dim url As String = "http://192.168.1.10/images/2.jpg"
           job.Download(url)
     
  3. achtrade

    achtrade Active Member Licensed User

    I did it, I got the same error
     
  4. DonManfred

    DonManfred Expert Licensed User

    Code:
    Dim job As HttpJob
        job.Initialize(
    "download",Me)
        
    Dim url As String = "http://192.168.1.10/images/2.jpg"
      job.Download(url)
    works fine here (the link does not work here though but it compiles fine

    B4A 5.02(1) and the httputils are replaced with the new provided with the okhttp library
     
    giga likes this.
  5. Erel

    Erel Administrator Staff Member Licensed User

    If it still doesn't work then please upload the project (File - Export as zip).
     
  6. achtrade

    achtrade Active Member Licensed User

    This fixed the problem. I removed the HttpJob module and I don't have this error.
     
    Last edited: Jun 20, 2015
Loading...