作者: | 来源:互联网 | 2023-10-10 04:22
I have several files in a GridFS Document Store and what I'd like to do is to pipe this data into a zip file via stdin in NodeJS. So that I will end up with a zip file containing all these files.
我在GridFS文档存储中有几个文件,我想做的是通过NodeJS中的stdin将这些数据传输到zip文件中。这样我就会得到一个包含所有这些文件的zip文件。
Now my question is how can I give the files a valid filename inside of the zip file. I think I need to emulate/fake a file header containing the filename?
现在我的问题是如何在zip文件中给这些文件一个有效的文件名。我想我需要模拟/伪造一个包含文件名的文件头?
Any help is appreciated!
任何帮助都是赞赏!
Thanks
谢谢
1 个解决方案