iOS Question http file download

mrossen

Active Member
Licensed User
Longtime User
Hi,

B4X:
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
 

mrossen

Active Member
Licensed User
Longtime User
Hi Again,

I think I found the solution i b4a forum

B4X:
Dim o As OutputStream
                o = File.OpenOutput(File.DirDocuments, "test.zip", False)
                File.Copy2(Job.GetInputStream, o)
                o.Close

Mogens
 
Upvote 0
Top