I am in the process of replacing a basic file serving API call which looks like this:
<code>return Results.File("myfile.pdf", MediaTypeNames.Application.Pdf, enableRangeProcessing: true);
</code>
<code>return Results.File("myfile.pdf", MediaTypeNames.Application.Pdf, enableRangeProcessing: true);
</code>
return Results.File("myfile.pdf", MediaTypeNames.Application.Pdf, enableRangeProcessing: true);
If I store “myfile.pdf” as a byte array (AKA string?) in Redis, how can I later serve the file in a similar as I currently am?
Does Redis have the ability to return a string as a stream, and if it does, do range requests on that stream work as expected? (only transferring the minimum bytes required to fulfil the range request)