Android Question Download from Gdrive

sigster

Active Member
Licensed User
Longtime User
Hi

I have a shared folder on Google Drive and try to download file
but I only download some html file not the file

Restricted is = Only pepole with access can open with the link


B4X:
    Dim j As HttpJob
    j.Initialize("", Me)
    j.Download("https://drive.google.com/u/1/uc?id=1B3yqlQLal0NJomDoUhfs2bspBHhIcBye&export=download")
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        Dim out As OutputStream = File.OpenOutput(File.DirInternal, "1.txt", False)
        File.Copy2(j.GetInputStream, out)
        out.Close
        Log("success")               
        Dim List1 As List
        List1 = File.ReadList(File.DirInternal,"1.txt")
        For i=0 To List1.Size-1
            Log(List1.Get(i))
        Next
        
    End If
    j.Release
 

GMan

Well-Known Member
Licensed User
Longtime User
I dont see any filename to download ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…