List Archive

Thread

Thread Index

Message

From: Lisa Matias <lisa.matias%gmail.com@localhost>
To: libzip-discuss%nih.at@localhost
Subject: ZIP_CREATE flag for zip_fdopen issues
Date: Tue, 3 Jan 2017 08:35:50 -0800

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.

Lisa.

Made by MHonArc.