Ejemplo n.º 1
0
        public ActionResult TestGetDocReport()
        {
            IDocumentHandler           handler = ServiceContainer.GetService <IDocumentHandler>() as IDocumentHandler;
            List <tbt_DocumentReports> list    = handler.GetDocumentReportsList("570", "001", "BLR010");
            Stream stream = null;

            if (list.Count > 0)
            {
                stream = new MemoryStream(list[0].FileBinary);
            }
            return(File(stream, "application/pdf"));
        }