Hi,
I try to download a file,
I think I post my troubles in the code.
I try to download a file,
I think I post my troubles in the code.
B4X:
fname=Main.photonumber & ".zip"
Dim s As String
s=Main.hostname & "uploads/" & fname
DoEvents
Dim jobdnld As HttpJob
jobdnld.Initialize ("dnld",Me)
' the file s exists - I checked
jobdnld.Download (s)
jobdnld.GetRequest.timeout=6000000
Sub JobDone (job As HttpJob)
Dim t As String
If job.Success = True Then
Select job.JobName
Case "dnld":
t=job.GetString
' t is a very long string, completely illegible, looks like random
log (t)
' system says that t is too big
If File.Exists (Main.outdir, fname) = False Then
Basis.debuginfo ("exiting",False)
Return
' the program comes to here
End If