title: How to stream video from dot net core 3 api using s3 bucket?
body: <p>Currently, I have the following implementation to stream a video saved locally. I guess a key part of this is the range processing so that the entire video is not loaded when an API call is made.</p>
  <pre><code>    [HttpGet]
      [Route(&quot;StreamVideo/{AttachmentID}&quot;)]
      public FileResult StreamVideo(string attachmentID)
      {
          try
          {
           
              return PhysicalFile(Path.Combine(&quot;somelocation&quot;,attachmentID), &quot;application/octet-stream&quot;, enableRangeProcessing: true);
          }
          catch (Exception ex)
          {
  
              _logger.LogError(ex,&quot;Error while getting video content &quot;);
              throw new Exception(&quot;Unable to load video content&quot;);
          }
      }
  </code></pre>
  <p>The above works great. However, how do I get the same functionality from a video saved on an s3 bucket?
  I already have s3 integration setup in my api so I can read and write to my s3 storage making use of the awssdk. I know just need to know how to use this SDK to get similar functionality, please help!</p>