I look around and it seems that zipping all the files together is the way to go. If that the case this is the design I am thinking of doing. Please let me know if there is more efficient way of doing this
- Client select multiples file of downloading, then click Download
- servlet receive the requests, then do multiple SELECT (files are saved as blob objects) statement to the database.
I can create BufferedOutputStream and write the blobs to different files, and I guess after I done doing that, I can zip the files up. (is this a good way to zip all the files or is there a better and faster way of achieve this?) After done zipping, then send it to the client (not sure how to do that either, please anyone know how to, please help) Please point out if there is any flaw in my design. I post some questions above, and would really appreciated of anyone can help me answer though. Sample code would be terrific. Thank you very much and have a wonderful new year