title: Web Api 2 - How to return an image (MemoryStream from Azure Storage) from a HTTPGET without saving to disk?
body: <p>I'm using Web Api 2 with C# and Azure, and having issues with how to return the image (base from Memorystream) for displaying on the page... </p>
  
  <p>Here is my Controller HTTPGET</p>
  
  <pre><code>[Route("api/PhotoSubmit/GetPhoto/{id}")]
      [HttpGet]
      public HttpResponseMessage GetPhotoById(int id)
      {
          StorageServices storage = new StorageServices();
          MemoryStream ms = storage.DownloadBlob(id);
          // return what ?
      }
  </code></pre>
  
  <p>Here is the beginning of the servicecall : </p>
  
  <pre><code>$http({
              method: 'GET',
              url: 'api/PhotoSubmit/GetPhoto/' + $routeParams.id,
              accept: 'application/json'
          })
          .success(function(result) {
          // How do i handle the result and what HTML should i use ? &lt;img ?
      });
  </code></pre>