aspZip icon indicating copy to clipboard operation
aspZip copied to clipboard

Can't I get a callback function at the end of the zip work ?

Open luckeyboy7 opened this issue 5 years ago • 4 comments

This's a good reference.

I have a question to ask you.

Although the source works well.

Can't I get a callback function at the end of the zip work ?

I want to zip file download it after compression work but it is not synchronized.

luckeyboy7 avatar Mar 03 '20 03:03 luckeyboy7

Hi Jack,

The current implementation relies on a Windows call and I'm not aware of callbacks for that, although the code had a way to be synchronous and have the file ready once the close method is called, some times it took a long time and the operation hangs, because of a sleep time that actually blocks a thread.

If you are up to try fiddle with the lines 136 and 139 and keeping track of fileCount during that. I didn't touch that code for a long time. Maybe I can revisit it in the next days and try something like that if you are not in for that.

rcdmk avatar Mar 03 '20 09:03 rcdmk

Hi, great code source, seems to work well in creating the zip file, but it seems that the permissions of said file is blank, in turn doesn't allow the file to be opened. Has anyone experienced this?

LTMNO avatar May 30 '24 22:05 LTMNO

Hi, great code source, seems to work well in creating the zip file, but it seems that the permissions of said file is blank, in turn doesn't allow the file to be opened. Has anyone experienced this?

Hi @LTMNO, thanks!

Permissions may be set by the Windows permissions set on the folder you are writing the file to. What is the environment you are running this code on? (eg. Windows version, IIS version, shared or dedicated host, trust level, etc.)

rcdmk avatar Jun 13 '24 04:06 rcdmk