iOS Question http file download

Discussion in 'iOS Questions' started by mrossen, Jan 24, 2015.

  1. mrossen

    mrossen Active Member Licensed User

    Hi,

    Code:
    job4.Initialize("Job4", Me)
        job4.Username = 
    "xxx"
        job4.Password = 
    "yyy"
        job4.Download([URL]http://www.url.dk/test.zip)[/URL]
    When I download a file with httputils2 where can I find the file after download?

    The code above run without error but I can not find the test.zip file

    Mogens
     
  2. mrossen

    mrossen Active Member Licensed User

    Hi Again,

    I think I found the solution i b4a forum

    Code:
    Dim o As OutputStream
                    o = 
    File.OpenOutput(File.DirDocuments, "test.zip"False)
                    
    File.Copy2(Job.GetInputStream, o)
                    o.Close
    Mogens
     
    Erel 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