Angular2 Displaying PDF : <p>I have an angular2 project with an ASP.Net Web API. I have code to retrieve a file path from my database which goes to a document on my server. I then want to display this document in the browser in a new tab. Does anybody have any suggestions how to do this?</p>

<p>I am happy to retrieve the file in either Angular2 (Typescript) or in my API and stream it down.</p>

<p>This is my attempt of retrieving it in my API but i cannot work out how to receive it in Angular2 and display it properly:</p>

<pre><code>public HttpResponseMessage GetSOP(string partnum, string description)
    {
        var sopPath = _uow.EpicorService.GetSOP(partnum, description).Path;
        HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);
        var stream = new FileStream(sopPath, FileMode.Open);
        result.Content = new StreamContent(stream);
        result.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream");
        return result;
    }
</code></pre>

<p>Any help would be greatly appreciated.</p>

<p>Many Thanks!!!</p>
