title: Windows 8 universal app ASP.Net web Api
body: <p>I'm trying binding image from ASP.NET Web Api service  there i have contorller</p>
  
  <pre><code>public class ImageController : ApiController
  {
  
      public HttpResponseMessage GetImage()
      {
          HttpResponseMessage response = new HttpResponseMessage();
          response.Content = new StreamContent(new FileStream("FileAddress", FileMode.Open));
          response.Content.Headers.ContentType = new MediaTypeHeaderValue("image/jpeg");
          return response;
      } 
  }
  </code></pre>
  
  <p>client side is Windows 8 universal app there are next code</p>
  
  <pre><code>private async void Button_Click(object sender, RoutedEventArgs e)
  {
      Uri datauri = new Uri("http://localhost:63606/Api/Image");
      var client = new HttpClient();
      var datafil = await client.GetAsync(datauri);
      HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, datauri);
  
      HttpResponseMessage response = await client.SendRequestAsync(request, HttpCompletionOption.ResponseHeadersRead);
      InMemoryRandomAccessStream randomAccessStream = new InMemoryRandomAccessStream();
      DataWriter writer = new DataWriter(randomAccessStream.GetOutputStreamAt(0));
  }
  </code></pre>
  
  <p>I don't know what to do , I couldn't get image for example in BitmapImage file.</p>