c# - How to track the progress of HttpClient post -


i'm building android app sends binary data server using httpclient postasjsonasync method. is possible track progress of data being sent?

i'm using code below send data server:

                    var client = new httpclient();                  client.baseaddress = uri;                  client.defaultrequestheaders.accept.clear();                 client.defaultrequestheaders.accept.add(                         new mediatypewithqualityheadervalue("application/bson"));                  var result = client.postasjsonasync(uri, filebytes); 

implement http post using asynctask. using task can track progress of task.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -