title: Azure Function to read large file in chunks through http trigger request
body: <p>I have an API in Azure function that uses Http trigger to receive data and send that across to the on-prem application. We have the UI front-end where user can upload large file size (no limit) and that would send data in chunks to the API.</p>
  <p>I am aware that the limitation of the function App is 100MB and I also see the recommendation for handling large file size is to use Blob Storage. However for synchronous process, we wanted to achieve this through the API (avoiding storing data in blob storage in the intermediate process).</p>
  <p>Is there a way how I can receive data in chunks via the Http trigger request? eg: UI -&gt; send data in chunks -&gt; API (uses HttpTrigger) read data in chunks and send data in chunks -&gt; on-prem.</p>
  <p>Eg:
  public static async Task Run(
  [HttpTrigger(AuthorizationLevel.Function, &quot;post&quot;, Route = null)] HttpRequest req,
  ILogger log)</p>
  <p>here how do I read data from req in chunks if the sender is streaming data in chunks already ?
  If I read something like below, it works fine as long as the payload is &lt;=100mb and fails with the error &quot;data too large&quot; if it is over 100mb.</p>
  <pre><code>_bufferSize = 1048576;
  byte[] datapayLoad;
  while (dataRead &gt;0)
  {
  dataRead = req.Body.Read(datapayLoad, 0, _bufferSize);
  ....
  }
  </code></pre>
  <p>Appreciate your help in this regard.</p>