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
Post a Comment