public ActionResult JobOrderAttachment(int id) { var fileToRetrieve = db.JobOrderAttachment.Find(id); byte[] file = blobManager.DownloadBlobClient(fileToRetrieve.JobOrderNumber.ToLower(), cmsMgr.GetFileName(fileToRetrieve.FileId).ToLower()); return(File(file, fileToRetrieve.ContentType, fileToRetrieve.FileName)); }