Zip Functionality for Notes Document

Hiya ,I am looking for any functionality that can automatically zip attachments within the rich text fields. There could be multiple rich text fields within one form holding many attachments.

The function can be triggered in Query save preferable , or I should have the ability to insert an attach button just beside the rich text fields , so that the documents get zipped as and when they are attached to the form…

Any guidance in this regard is much appreciated…

Cheers ,

SG.

Subject: Why not use the built in LZ1 compression functionality?

From Domino Designer help…

Use LZ1 compression for attachments

In IBM® Lotus® Domino™ Designer Release 6 and later, you can choose to compress attachments using the new LZ1 algorithm instead of the Huffman algorithm. Because LZ1 compression can be performed quickly and efficiently, it is favored over the Huffman method. However, if you are working in an environment that uses different versions of client and server software (for example, a Lotus Domino Designer 6 client and an R5 server) and you choose this option, attachments are automatically recompressed on the server using the Huffman method. Note that recompressing has performance implications. For best performance, use LZ1 in primarily Domino 6 or later environments.

Or you could look at a partner product such as http://www.notes-compression.com/

Subject: RE: Why not use the built in LZ1 compression functionality?

How does the LZ1 compression get activiated ? I tried creating 2 documents with the same attachments

1.) With the LZ1 Option enabled

2.) With the option Disabled.

In Both cases the size of the document remains the same…

Cheers,

Subject: RE: Why not use the built in LZ1 compression functionality?

If you’re looking at a mailbox view, the document size displayed does not take the compression into account. If you actually check the document properties, you can find the document with the LZ1 attachment is smaller.

Subject: RE: Why not use the built in LZ1 compression functionality?

I created a View and used @DocLengt in 1 column.Both documents returned the same number.

SG

Subject: RE: Why not use the built in LZ1 compression functionality?

Right-click on the document and open Document Properties to look at the document size. You’ll find it doesn’t match @DocLength (or NotesDocument.Size, for that matter).

Subject: Zip Functionality for Notes Document

Hi

You could write an Java agent which fairly easy does this.

The package java.util contains api for creating zip files.

brgds Jesper Kiaer

http://www.jezzper.com

Subject: RE: Zip Functionality for Notes Document

Jesper ,I’m not at my best in JAVA skills…Do you have any specific pre-written JAVA agent that can help to achieve this…?

SG

Subject: RE: Zip Functionality for Notes Document

Hi

There are lots of examples on the Internet.

http://www.exampledepot.com/egs/java.util.zip/CreateZip.html

Is a good example how to create a ZIP file with java

brgds Jesper Kiaer

Http://www.jezzper.com