title: How can I get the bytes of a GetObjectResponse from S3?
body: <p>I'm retrieving a file from Amazon S3. I want to convert the file to bytes so that I can download it as follows:</p>
  
  <pre><code>var download = new FileContentResult(bytes, "application/pdf");
  download.FileDownloadName = filename;
  return download;
  </code></pre>
  
  <p>I have the file here:</p>
  
  <pre><code>var client = Amazon.AWSClientFactory.CreateAmazonS3Client(
          accessKey,
          secretKey,
          config
          );
  GetObjectRequest request = new GetObjectRequest();
  GetObjectResponse response = client.GetObject(request);          
  </code></pre>
  
  <p>I know about  response.WriteResponseStreamToFile() but I want to download the file to the regular downloads folder. If I convert the GetObjectResponse to bytes, I can return the file. How can I do this?</p>