So what I basically have is a bunch of files stored inside of the database that I want to extract and zip. The one thing i do want to accomplish to doing this all in memory.
I want to send this as an email attachment also.
So basically:
- Gather all documents from the database
- Gather those documents in an memorystream/array??
- Zip those files in memory
- Email them as an attachment.
I have 1 and 4 completed, but how do you create an array of files in memory? When I tried the files from the database the data is in a byte[] and the filename is a string.
Any thoughts?