我在内存中创建了多个PDF文件流。 我可以从这些流创建一个zip文件,如果是这样的话怎么样? 我想给用户一个下载的文件zip,而不在服务器上创建任何文件。 p>
ZipArchive 在运行 addFile code>时才会显示文件名。 p>
div>
I have created multiple PDF file streams in memory. Can I create a zip file from these streams, and if so how? I want to give the user a downloaded zip of my files without creating any files on the server.
ZipArchive only appears to take file names when running addFile
.
我在内存中创建了多个PDF文件流。 我可以从这些流创建一个zip文件,如果是这样的话怎么样? 我想给用户一个下载的文件zip,而不在服务器上创建任何文件。 p>
ZipArchive 在运行 addFile code>时才会显示文件名。 p>
div>