Is there an upload component as well?
Thanks Erel,You are not closing the output stream after calling File.Copy2.
There are other problems in your code as well. You should move all the non-UI global variables to process_globals and only load the data when FirstTime is True.
The timer is also not needed.
Sub dd_Complete(Job As HttpJob) Log("Job completed: " & Job.Success) Job.Release Dim o As OutputStream o = File.OpenOutput(File.DirDefaultExternal, "l.bal", False) File.Copy2(Job.GetInputStream, o) o.Close End Sub
java.io.FileNotFoundException: /data/data/b4a.example/cache/1: open failed: ENOENT (No such file or directory)