hi
i m trying to download an excel file from a google drive using httputils2
i used initialiseacceptall
but still i get this :
"Job [errormessage=, httputils2service=null, jobname=job1, main=null, mlink=[url]https://gdurl.com/xxxx[/url], password= , req=anywheresoftware.b4a.http.httpclientwrapper$httpurirequestwrapper@1164df5f, target=class com.mox.pb1.main, taskid=1, username=, success=true]
job.getstring = ascii characters not intelligible
then i use this to convert to xls "
the resulting pbtemp.xls is corrupted
does it mean the file was downloaded correctly? or the error is in conversion?
the file is readily downloaded from android browser
what am i doing wrong
is there any other webdrive that s supported ?
i m trying to download an excel file from a google drive using httputils2
i used initialiseacceptall
but still i get this :
"Job [errormessage=, httputils2service=null, jobname=job1, main=null, mlink=[url]https://gdurl.com/xxxx[/url], password= , req=anywheresoftware.b4a.http.httpclientwrapper$httpurirequestwrapper@1164df5f, target=class com.mox.pb1.main, taskid=1, username=, success=true]
job.getstring = ascii characters not intelligible
then i use this to convert to xls "
B4X:
File.openoutput(File.DirInternalCache,"pbtemp.xls",False)
File.WriteString(File.DirInternalCache,"pbtemp.xls", Job.GetString)
File.Copy(File.DirInternalCache,"pbtemp.xls",File.DirRootExternal,"pbtemp.xls")
File.Copy(File.DirInternalCache,"pbtemp.xls",File.DirInternalCache,dbname)
File.Delete(File.DirInternalCache,"pbtemp.xls")
the resulting pbtemp.xls is corrupted
does it mean the file was downloaded correctly? or the error is in conversion?
the file is readily downloaded from android browser
what am i doing wrong
is there any other webdrive that s supported ?