Changes between Version 6 and Version 7 of FileCompression


Ignore:
Timestamp:
Feb 27, 2008, 10:06:57 AM (17 years ago)
Author:
Nicolas
Comment:

Anchors

Legend:

Unmodified
Added
Removed
Modified
  • FileCompression

    v6 v7  
    11[[PageOutline]]
    22= File compression =
    3 == Compression of output files ==
     3== Compression of output files == #compress-output
    44
    55If you include the `<gzip_when_done>` tag in an [XmlFormat#Files output file description], the file will be gzip-compressed after it has been generated.
    66
    7 == Compression of input files ==
     7== Compression of input files == #compress-input
    88
    99Starting with version 5.4, the BOINC client is able to handle HTTP `Content-Encoding` types 'deflate' (zlib algorithm) and 'gzip' (gzip algorithm). The client decompresses these files 'on the fly' and stores them on disk in uncompressed form.
     
    1111You can use this in two ways:
    1212
    13     * Use the Apache 2.0 mod_deflate module to automatically compress files on the fly. This method will work with all BOINC clients, but it will do compression only for 5.4+ clients. Info on how to configure this is below.
     13    * Use the Apache 2.0 mod_deflate module to automatically compress files on the fly. This method will work with all BOINC clients, but it will do compression only for 5.4+ clients. See [#mod_deflate Using mod_deflate].
    1414    * Compress files and give them a filename suffix such as '.gz'. The name used in your `<file_info>` elements, however, is the original filename without '.gz'. BOINC clients older than 5.4 won't be able to download files.
    1515
     
    2626
    2727
    28 == Using mod_deflate ==
     28=== Using mod_deflate === #mod_deflate
    2929
    3030Apache 2.0 includes a module called mod_deflate.
     
    8989`.faa` and `.mask` served from the download directory.
    9090
    91 == Using boinc_zip ==
     91== Using boinc_zip == #boinc-zip
    9292
    9393You can also do compression in your application.
     
    104104distributing `zip` & `unzip` executable binaries for different platforms).
    105105
    106 === Limitations ===
     106=== Limitations === #boinc-zip-limitations
    107107The "unzip" functionality is there, that is you can unzip
    108108a file and it will create all directories & files in the zip file. 
     
    112112function which will be explained below.
    113113
    114 === Building ===
     114=== Building === #boinc-zip-building
    115115
    116116For Windows, you can just add the project "boinc_zip" to your
     
    129129Also, please note that boinc_zip relies on some BOINC functions that you will need (and will most likely be in your app already since they are handy) -- namely `boinc/lib/filesys.C` and `boinc/lib/util.C`.
    130130
    131 === Using ===
     131=== Using === #boinc-zip-using
    132132Basically, you will need to `#include "boinc_zip.h"` in your app (of course
    133133your compiler will need to know where it is, i.e. -I../boinc/zip).