mardi 3 novembre 2015

Opening a binary stream (such as a PDF) in the browser

So, currently I have successfully retrieved the binary data from an URL (in most cases this is a PDF). I have done this simply using:

byte[] binaryData = myWebClient.DownloadData(product.Url);

Now I want to display a clickable link/button to the user in which they can open this PDF in the browser.

How would I go about doing this?

Aucun commentaire:

Enregistrer un commentaire