none
Download multiple files from WCF web method RRS feed

  • Question

  • Hi,

    We have folders/files in server in below mentioned structure.

    Folder1 --> Sub_Folder1 --> Files ……. nth file
    Folder2 --> Sub_Folder2 --> Files ……. nth file
    .
    .
    .
    .
    nth folder.

    For my client to download these file developed & deployed a WCF service in server to return FileStream of files. Issue is if my client need to download Folder1 completely them they need to hit web method of svc service once for each file available in Folder1, which is effecting performance as they are making request and response(of web method) from foreach loop(file in folder) to download all files available in folder.

    Is there any way to zip the complete folder and return that zip file with one single request and response? And finally at client place unzip that folder?
    Is there any other good approach to fix this performance issue?

    Thanks in advance.
    Hazeq

    Sunday, April 13, 2014 4:42 PM

Answers