Android Question OkHttpUtils2 PostString with progress?

Daica

Member
Licensed User
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:
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
 

oparra

Well-Known Member
Licensed User
see:


 
Upvote 0
Top