title: Azure Logic App - Receive file from http request
body: <p>I have an ASP.Net handler that returns a PDF report. I want the Azure Logic App to request the file and then add it to an e-mail as an attachment.</p>
  
  <p>When I try to do this through an HTTP request I get the following error:</p>
  
  <blockquote>
    <p>BadRequest. Http request failed as there is an error: 'Error while copying content to a stream.'</p>
  </blockquote>
  
  <p>If I make the request with a browser I get a HTTP 200 response and it works. See request/response headers from chrome and fiddler.</p>
  
  <p>I'm sure I could solve this with an Azure Function to get the file blob and pass it to the e-mail stage but it appears in the documentation that Logic Apps can handle streams and base64 encode. Am I missing something here?</p>
  
  <p><a href="https://i.stack.imgur.com/tGcR7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tGcR7.png" alt="chrome network tab"></a></p>