Download huge files with HttpUtils2
Please, i used to use the above example to download files with okhttp2 and it worked as expected but its not working for me as i am using b4xpages.
this line gives an error because the pages are regular class so i change it to
the error is now gone but nothing happens, the download is not started.
Please, any help?
B4X:
Sub btnDownload_Click
Dim dd As DownloadData
dd.url = link1 '<--- download link
dd.EventName = "dd"
dd.Target = Me
CallSubDelayed2(DownloadService, "StartDownload", dd)
End Sub
Please, i used to use the above example to download files with okhttp2 and it worked as expected but its not working for me as i am using b4xpages.
B4X:
dd.Target = Me
B4X:
dd.Target = Main
Please, any help?
Last edited: