D Daica Active Member Licensed User Longtime User Jun 30, 2021 #1 Most examples I've seen are for downloading something with progress. How can I do a PostString and get the current progress if that's even possible? I am uploading/posting base64 strings to the server, however, the base64 string is huge and it sometimes can take more than 3min to fully upload. I would like to know if it's possible to get the current progress so that I may show it to the user B4X: Copy Dim j As HttpJob j.Initialize("", Me) j.PostString(AppSettings.ServerUrl & "/upload.php", json.ToString) Wait For (j) JobDone(j As HttpJob) 'Show progress of upload here? If j.Success Then End If
Most examples I've seen are for downloading something with progress. How can I do a PostString and get the current progress if that's even possible? I am uploading/posting base64 strings to the server, however, the base64 string is huge and it sometimes can take more than 3min to fully upload. I would like to know if it's possible to get the current progress so that I may show it to the user B4X: Copy Dim j As HttpJob j.Initialize("", Me) j.PostString(AppSettings.ServerUrl & "/upload.php", json.ToString) Wait For (j) JobDone(j As HttpJob) 'Show progress of upload here? If j.Success Then End If
TILogistic Expert Licensed User Longtime User Jul 1, 2021 #2 see: OKHttpUtils2, Progress_Sub and POST Request? Hi all, I´m looking for a solution to download a large file (>50MB) with progress. But I need to send the Request as POST string. Does someone has an Idea how to do this? thanks in advance Moosi www.b4x.com Download huge files with HttpUtils2 Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463 The attached project includes a slightly modified version of HttpUtils2 and a new service named DownloadService. The purpose of DownloadService is to make it simple to download files of... www.b4x.com Upvote 0
see: OKHttpUtils2, Progress_Sub and POST Request? Hi all, I´m looking for a solution to download a large file (>50MB) with progress. But I need to send the Request as POST string. Does someone has an Idea how to do this? thanks in advance Moosi www.b4x.com Download huge files with HttpUtils2 Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463 The attached project includes a slightly modified version of HttpUtils2 and a new service named DownloadService. The purpose of DownloadService is to make it simple to download files of... www.b4x.com
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2021 #3 A more complex request with progress is available here: https://www.b4x.com/android/forum/t...ts-file-uploads-with-progress.130181/#content You can do something simpler for a PostString request. Upvote 0
A more complex request with progress is available here: https://www.b4x.com/android/forum/t...ts-file-uploads-with-progress.130181/#content You can do something simpler for a PostString request.