I am looking to return a stream from Azure Blob Storage directly to the browser via WCF. Basically I have a REST WCF service and I am looking to have users download files via the service while the files are stored in Azure Blob storage.
In this question
Returning Azure BLOB from WCF service as a Stream - Do we need to close it?
it does what I like however it downloads the entire file to a new stream first, is there a way to give the blob stream as the return stream from WCF so WCF acts more like a proxy for the stream?
My issue is with large files (> 10MB), I really do not want to download the entire stream from Azure storage before I can start returning it to the user.
The reason I am doing it this way is I am doing some security checks on my user before I will allow access to the file that is stored in Azure Blob Storage, also some of the files could be up to 1GB in size.