title: Passing file from web service to client in ASP.NET
body: <p>I need to pass a file that's obtained via a web service on to the end user. Right now, I'm doing this in two steps:</p>
  
  <ol>
  <li><p>Obtain file from a secure web service:</p>
  
  <p>Dim client As New Net.WebClient
  client.Headers.Add("Authorization", String.Format("Bearer {0}", access_token))</p>
  
  <p>Dim data As Byte() = client.DownloadData(uri)</p></li>
  <li><p>Serve the file to the user via the http response.</p></li>
  </ol>
  
  <p>This is taking a long time for the end user, as the user has to wait for the server to download the file from the service, and then for the client to download the file from the server.</p>
  
  <p>Is it possible to instead stream the file directly from the web service to the user? If so, what's the best way to do it?</p>