title: How to download file from google drive using mvc?
body: <p>I am using this code for download file from google drive with MVC.
  In this sample using google web application instead of console application. 
  Console application is working but in web application is not working.</p>
  
  <pre><code>Google.Apis.Drive.v2.Data.File Files = null;
  byte[] fileBytes = null;
  var service = GoogleAuthentication(CloudID);
  FilesResource.GetRequest list = service.Files.Get(path);
  Files = list.Execute();
  if (!String.IsNullOrEmpty(Files.DownloadUrl)) {
      fileBytes = new System.Net.WebClient().DownloadData(Files.WebContentLink);
  }
  MemoryStream ms = new MemoryStream(fileBytes);
  
  return File(ms, System.Net.Mime.MediaTypeNames.Application.Octet, pfile);
  Google.Apis.Drive.v2.Data.File Files = null;
  byte[] fileBytes = null;
  var service = GoogleAuthentication(CloudID);
  FilesResource.GetRequest list = service.Files.Get(path);
  Files = list.Execute();
  if (!String.IsNullOrEmpty(Files.DownloadUrl)) {
      fileBytes = new System.Net.WebClient().DownloadData(Files.WebContentLink);
  }
  MemoryStream ms = new MemoryStream(fileBytes);
  
  return File(ms, System.Net.Mime.MediaTypeNames.Application.Octet, pfile);
  </code></pre>