Unlike the webapplication I would like to view pdf contents without storing it at physical location. I have bytes of array just need to display it in as pdf format.
below code works for webapplication but I am looking for windows console application.
Response.Clear();
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "inline;filename=data.pdf");
Response.BufferOutput = true;
byte[] pdf;
Response.AddHeader("Content-Length", response.Length.ToString());
Response.BinaryWrite(pdf);
Response.End();