- ZIP_CREATE flag for zip_fdopen issues, Lisa Matias (2017/01/03 16:35:53)
I have a web server CGI application which needs to dynamically create a unique ZIP archive which is sent via the web socket (file descriptor) to the user's browser for download.
Since the web server is running on Debian Linux, the goal is to avoid having to create and use temporary files, especially since the ZIP archive will only contain 3 dynamic files that are specified in 3 unsigned character (UINT8_T) buffers. Creating unnecessary temporary files will only result in causing significant flash aging on the web server's SSD.
However, there seems to be issues with using the ZIP_CREATE flag for zip_fdopen().
Looking at the man page: https://nih.at/libzip/zip_fdopen.html
The ZIP_CREATE is not even specified as flag for "zip_fdopen()" as it is for "zip_open()".
Any advice on how to do this properly with libzip?
Thank you in advance.
Made by MHonArc.