I am trying to convert a folder & it's contents (files & sub-folders) to a single stream which will be returned to some application. The problem is that I cannot compress the folder. Now, I want to know that whether there's a way to modify the attributes or type of a folder so that it will be treated as a single but unknown file. So that I can read it using a single FILESTREAM object.
Another way that I could think of is to return an array of stream which will contain the stream of all the files inside the root folders & sub-folders. Along with that a text/xml file also in stream, which will store the location of each file inside the Stream array.