ThRuST Well-Known Member Licensed User Longtime User Nov 19, 2016 #1 Can someone provide examples how to download a file and/or multiple files into a folder by using jOkHttpUtils2 for B4J which is part of the libraries collection in the IDE. Thanks
Can someone provide examples how to download a file and/or multiple files into a folder by using jOkHttpUtils2 for B4J which is part of the libraries collection in the IDE. Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2016 #2 See HttpUtils2 tutorial: https://www.b4x.com/android/forum/t...-services-are-now-even-simpler.18992/#content It is identical to jOkHttpUtils2. The last step is to copy the downloaded file: Code: Copy Dim out As OutputStream = File.OpenOutput(...) File.Copy2(Job.GetInputStream, out) out.Close Upvote 0
See HttpUtils2 tutorial: https://www.b4x.com/android/forum/t...-services-are-now-even-simpler.18992/#content It is identical to jOkHttpUtils2. The last step is to copy the downloaded file: Code: Copy Dim out As OutputStream = File.OpenOutput(...) File.Copy2(Job.GetInputStream, out) out.Close
ThRuST Well-Known Member Licensed User Longtime User Nov 20, 2016 #3 Thank you, Lord Erel. The B4X force is strong in your family Upvote 0