file.copy2

HengeDK

Member
Licensed User
Longtime User
Im lost here. so please help ;-)
im lost at the filecopy2 function
I get file not exist

B4X:
   job1.Download("http://xxx.xxx.xxx.xxx/test.db")
  
    Dim out As OutputStream
    out = File.OpenOutput(File.DirDefaultExternal, "test.db" ,False )
   File.Copy2(job1.GetInputStream, out)
   out.Close
   job1.Release
 

walterf25

Expert
Licensed User
Longtime User
File doesn't exist

I think the file gets saved in the
B4X:
file.DirInternal
directory, try switching from file.dirdefaultexternal to file.DirInternal.

Regards,
Walter
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…