title: Sending a photo to server using httpclient class windows phone 8
body: <p>i'm trying to send a photo to a server using httpclient class but every time i try i get a 0 byte file , here's my code for sending the image </p>
  
  <pre><code>if (e.ChosenPhoto != null)
                      {
                          var fileUploadUrl = Globals.baseUrl + "/laravelProjects/VisWall/public/test2";
                          var client = new HttpClient();
                          photoStream.Position = 0;
                          MultipartFormDataContent content = new MultipartFormDataContent();
                          content.Add(new StreamContent(e.ChosenPhoto), "image", fileName);
                          HttpResponseMessage result = new HttpResponseMessage();
                          await client.PostAsync(fileUploadUrl, content).ContinueWith((postTask) =&gt;
                          {
                              try
                              {
                                  result = postTask.Result.EnsureSuccessStatusCode();
                              }
                              catch (Exception exc)
                              {
                                  MessageBox.Show("errorrrrrr");
                              }
                          });
                       }
  </code></pre>
  
  <p>i've also checked the length of e.ChoosenPhoto and it's not 0</p>