Kishore Kumar

Kishore Kumar

  • NA
  • 29
  • 3.8k

How to show progress bar with percentage while uploading WP8

Jul 28 2014 6:28 AM
Here is my code for uploading,

 byte[] buffer = PhoneApplicationService.Current.State["audiorecordedbytes"] as byte[];


            string url = ServiceOperations.Service_ImageUpload;
            var parameters = new Dictionary<string, object>();
            parameters.Add("FileName", filename);
            parameters.Add("photo", buffer);


            this._currentPostTask = new HttpPostTask(url, parameters, this.OnPostCompleted);
            this._currentPostTask.Execute();

I want to show Progressbar with percentage, in WebClient we are having the ProgressChangedEvent for downloading not for uploading.Using HttpWebRequest we don't have such type of events.How can I show Progressbar with percentage in windows Phone 8.
Thanks in advance.