PermaLink Unzipping files from LotusScript01/13/2006 08:19 PM

Last week, I was building a server autoloader for FCKEdit, that is, an agent that runs in unrestricted mode on the sever and unzips an attachment to the domino\html directory.   That way, fckedit can be stored at http://server/fckeditor or http://server/fckeditor22 if you prefer to keep versions separate for caching reasons.

Several years ago, I had noticed that built into the notes install were dunzip32.dll and dzip32.dll (looks like now its just dunzip32.dll)

Although at the time I didn't know when I would use the dll's, I knew that I would eventually, so, I researched them and found they are part of the DynaZIP library and the vb people have known about them for a while.

Hear are the declares,

Declare Function dunzipVB Lib "dunzip32.dll" (ucs As UNZIPCMDSTRUCT, vbduzBlk As VBDUNZIPBLOCK, zi As ZIPINFO, statusBlk As VBSTATBLK) As Long
Declare Function dzipVB Lib "dzip32.dll" (zcs As ZIPCMDSTRUCT, vbdzBlk As VBDZIPBLOCK, statusBlk As VBSTATBLK) As Long

At the time that I grabbed these files I was able to find better documentation than I can now, but, I had enough to duct tape together an unzip utility, working was what was important, not polished.

Heres what I put together, some of this is untested code from uncredited Internet sources, (its been years, sorry whomever) zip04.lss 

 The unzip function is working great, but, the whole code needs to be polished and error handling added, which I was going to get around to.  Until I noticed that 2 weeks ago Julian posted his zipfilemanager using java, honestly I had no idea that he was hiding this stuff in plain site.   The timing is very weird, Julian's post was 12/28, so, after I began talking about it, but before I actually completed it.

I intend to implement the autoloader in Face lift For Domino, which is the subject of my lotusphere presentation this year, but, more on that later.  Now, I'm torn between, everything you can do we can do better (java vs lotusscript)  and taking what is done and moving on.   My guess is that time will make the decision for me, sorry lotusscript.

 


Comments :v

1. Christian Brandlehner04/23/2006 02:56:33 AM
Homepage: http://chris.brandlehner.at


Have you managed to get the FCKeditor upload connector working? I am still trying to figure out how to use that with Domino.




Add Manual Trackback
Please enter the details of the trackback post. Your trackback will not appear on the site until it has been verified. This won't be immediate, as trackbacks are validated on a scheduled basis. Be patient.











Powered By :

BlogSphere

Join The WebLog Revolution at BlogSphere.net

Dwight Pic
Hot Links
These are my heavy hitters
MSDN DHTML Objects
MSDN JScript

Contact Me
Left Block 3
Monthly Archive
Todays Referrers
RSS News Feed RSS Comments Feed Geo URL Blog Admin OpenNTF BlogSphere