Hi,
Im using job1.download to download a file, works ok, but if I go to the server and change the contents of the file I allways get the previous file and not the new one.
Its like the file were cached.
How can I solve this?
Thanks
Sub bForzarLectura_Click
Dim job As HttpJob
job.Initialize("j", Me)
job.Download("http://pedidos.pqllana.com.ar/uploads/preciosxprodenvbase.csv")
End Sub
Sub JobDone(job As HttpJob)
If job.Success Then
Dim out As OutputStream = File.OpenOutput(File.DirDefaultExternal, "preciosxprodenvbase.csv", False)
File.Copy2(job.GetInputStream, out)
out.Close '<------ very important
Else
Msgbox("Error: " & job.ErrorMessage,"")
End If
job.Release
End Sub
In both cases I get the old file and not the new one.
Thanks