[Zope] Zip a file on the fly

Tom Deprez Tom Deprez" <tom.deprez@uz.kuleuven.ac.be
Thu, 11 Oct 2001 19:02:19 +0200


Dit is een meerdelig bericht in MIME-indeling.

------=_NextPart_000_0265_01C15287.407AB250
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I'm using LocalFS to show pushed jpeg files from a PACS system. These =
Jpeg files are all sorted in folders (each patient has a folder) etc.

Now I would like the user to be able to download a complete folder, just =
by clicking it on the browser. The best way to let the user download the =
whole folder is (I think) to first zip the folder and then let the user =
download the zip file. (If there are ways to download a complete folder, =
that's even better).

Now, are there people who know of a good python library for zipping a =
file (.zip format)
Or do people know if it is possible to download a complete folder?

Thanks in advance,
Regards, Tom.

------=_NextPart_000_0265_01C15287.407AB250
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm using LocalFS to show&nbsp;pushed=20
jpeg&nbsp;files from a PACS system. These Jpeg files are all sorted in =
folders=20
(each patient has a folder) etc.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now I would like the user to be able to =
download a=20
complete folder, just by clicking it on the browser. The best way to let =
the=20
user download the whole folder is (I think) to first zip the folder and =
then let=20
the user download the zip file. (If there are ways to download a =
complete=20
folder, that's even better).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now, are there people who know of a =
good python=20
library for zipping a file (.zip format)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Or do people know if it is possible to =
download a=20
complete folder?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Regards, =
Tom.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0265_01C15287.407AB250--