I want to return a stream from Azure Blob storage directly to the browser through WCF. Mostly I have a WCF REST service, and I'm looking for users to upload files through the service while the files are stored in Azure Blob storage.
In this question
Return Azure BLOB from WCF service as a stream - do I need to close it?
it does what I like, but first uploads the whole file to a new stream, is there a way to pass the blob stream as a returned stream from WCF, so does WCF act more like a proxy for a stream?
My problem is with large files (> 10 MB), 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 do this is because I do some security checks for my user before I allow access to a file stored in Azure Blob storage, as well as some files up to 1 GB in size.
source share