Online Product Info
CompressionLevel Property

Description
The CompressLevel property indicates the amount of compression to be performed. The lower the compression, the faster compression takes place. Likewise, stronger compression takes longer but yields the smallest file size.

Valid values are None (CompressionLevelType.None), Low (CompressionLevelType.Low), Medium (CompressionLevelType.Medium), High (CompressionLevelType.High), Maximum (CompressionLevelType.Maximum)

Compressing attachments allows you to save bandwidth, reduce overall file size, and combine several files into a single file.

If you set CompressionLevel equal to "None", no compression will take place but attachments will be combined into a single zip file.

Default Value
If the CompressionLevel is not specified, it will default to Medium.

Usage
See Listing A for an example of the CompressionLevel property in the Auto DB control tag.

<cc1:AutoDB id="AutoDB1" runat="server" CompressUploadedFiles="True"  CompressionLevel="High" UploadDir="Uploads"> </cc1:AutoDB>
Listing A

Note: Uploaded files (and auto response email attachments) will only be compressed or added to a zip file if you set CompressUploadedFiles="True"

Related Properties

UploadDir, CompressUploadedFiles

 

© copyright 2004 360 IMPACT. All rights reserved.