B4J Question Job.download its changing my file

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
i m using httpjob to download a file on my host.
this file its correct, i can download it on the link, or in filezile the content of this file is a int = 22

but when i use httpjob to download the value inside the file is 645341452 and not 22 why?

here is how i download
B4X:
   Dim job_version As HttpJob
   job_version.Initialize("job_version", Me)
   job_version.Download(url&"/version/vtm.brn")


here is how i save
B4X:
                Case "job_version"
     
                        Dim OutStream As OutputStream   
                        OutStream = File.OpenOutput(File.DirData("lc"), "vtconfig", False)
                        File.Copy2(Job.GetInputStream, OutStream)
                        OutStream.Close

where its the problem?

if i download direct of the link the file its normal, if i download with filezila the file its normal too, int = 22 inside the file.

but when i use job this is 645341452


thx
 
Top