c# - Returning Azure Blob Stream directly from WCF service -


i looking return stream azure blob storage directly browser via wcf. have rest wcf service , looking have users download files via service while files stored in azure blob storage.

in question

returning azure blob wcf service stream - need close it?

it downloads entire file new stream first, there way give blob stream return stream wcf wcf acts more proxy stream?

my issue large files (> 10mb), not want download entire stream azure storage before can start returning user.

the reason doing way doing security checks on user before allow access file stored in azure blob storage, of files 1gb in size.

i have done similar wcf used authorize client (and check blob still exists , on). if ok wcf service returned url shared access signature - allowed client access stream directly storage. saving transaction costs of pulling blob wcf role , streaming there.

might work you?


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -