Ejemplo n.º 1
0
        public FileContentResult GetLosslessImage(string patientName)
        {
            try
            {

                var obj =
                    new ImageHeaderXmlReader(
                        @"C:\Hariom\Personal\DotNetExperiments\TeamWorkManagement\WebAPISampleProject\DataFiles\ImageHeader.xml");
                byte[] byteArray = obj.GetImageFileContent(patientName);

                //byte[] byteArray = System.IO.File.ReadAllBytes(@"C:\Users\502230035\Documents\Visual Studio 2012\Projects\TeamWorkManagement\WebAPISampleProject\DataFiles\imageData.txt"); ;
                //byte[] byteArray = System.IO.File.ReadAllBytes(@"C:\Hariom\Personal\DotNetExperiments\TeamWorkManagement\WebAPISampleProject\DataFiles\Valencia_Lossless.txt");

                //return new FileContentResult(byteArray, "application/pdf");
                return new FileContentResult(byteArray, "application/octet-stream");
            }
            catch (Exception ex)
            {
                LoggingFramework.Logger.LogException("An exception has occured." + ex.Message);
            }

            return null;
        }
Ejemplo n.º 2
0
 public string GetPaitentImageHederInfo(string patientName)
 {
     var obj = new ImageHeaderXmlReader(@"C:\Hariom\Personal\DotNetExperiments\TeamWorkManagement\WebAPISampleProject\DataFiles\ImageHeader.xml");
     return obj.GetImageHeader(patientName);
 }