Good afternoon,
I'm using httpResponseMessage
, every request it downloads.
Did you want it to appear in your browser when prompted?
HttpResponseMessage responseMsg = new HttpResponseMessage(HttpStatusCode.OK);
responseMsg.Content = new ByteArrayContent(file);
responseMsg.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
responseMsg.Content.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");
Sincerely,