Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Lee Jenkins
Felipe Monteiro de Carvalho wrote: On Wed, Feb 11, 2009 at 9:23 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Thanks Felipe. I'll take a closer look at both and try to merge any feature between the two. I would prefer something that is standard in FPC as well. I added step-by-step

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Felipe Monteiro de Carvalho
On Sat, Feb 14, 2009 at 2:43 PM, Lee Jenkins l...@datatrakpos.com wrote: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? I don't understand your question. The files produced work correctly if given the .zip extension. They are recognized

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? I don't understand your question. The files produced work correctly if given the .zip extension. They are recognized by the internal unzipper of

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Sergei Gorelkin
Lee Jenkins wrote: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? Yes, it produces pkZIP compatible files and yes, it uses zlib for compression. .zip file format deals only with overall archive file structure (headers,

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Felipe Monteiro de Carvalho
On Sat, Feb 14, 2009 at 4:57 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? What is pkZIP? You assume that OO only looks at the file extension, not at the actual file contents? I

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-14 Thread Lee Jenkins
Sergei Gorelkin wrote: Lee Jenkins wrote: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? Yes, it produces pkZIP compatible files and yes, it uses zlib for compression. .zip file format deals only with overall archive file

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-11 Thread Graeme Geldenhuys
On Tue, Feb 10, 2009 at 11:53 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: I've never used TZipFile, but well, you wrote that TZipFile doesn't compress. TZipper does compress, and TZipper is a standard component of Free Pascal. Althougth at the moment you need a

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-11 Thread Felipe Monteiro de Carvalho
On Wed, Feb 11, 2009 at 9:23 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Thanks Felipe. I'll take a closer look at both and try to merge any feature between the two. I would prefer something that is standard in FPC as well. I added step-by-step instructions on how to get the latest

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-11 Thread Reenen Laurie
Hi all. Again thank you for a whole new world that opened up to me. Eventually i went with libtar, but i'll run into trouble on editing it live later... But for the size of my files it shouldn't bother much. Thanks again! -Reenen On 2/11/09, Felipe Monteiro de Carvalho

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 7:46 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: You could also try TZipFile located in the following SVN repository. It doesn't contain compression yet, but does place files and folders inside a .zip archive. It has file handling routines, so it feels like you

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Later in the year I want to extend TZipFile with compression (if it doesn't already have) and use it as our custom help file format for our company applications. I've already been working on a general compression/archive interface, based on the Abbrevia approach.

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-10 Thread Felipe Monteiro de Carvalho
On Tue, Feb 10, 2009 at 1:13 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: I have never looked at TZipper. Do you have any idea how that differs from TZipFile? Is it worth picking one over the other? I've never used TZipFile, but well, you wrote that TZipFile doesn't compress. TZipper

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-09 Thread Graeme Geldenhuys
On Mon, Feb 9, 2009 at 3:16 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Don't confuse zlib with zip. AFAIK zlib is the gz library, which compresses only an single file, and typically is used to compress tar archives into *.tar.gz or *.tgz. That's correct. An alternative that also

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-09 Thread Graeme Geldenhuys
On Mon, Feb 9, 2009 at 2:47 PM, JoshyFun joshy...@gmail.com wrote: Where's that 7Zip Delphi unit ? I was unable to find it, except a bunch of API headers and others that need the 7za.dll http://www.7-zip.org/sdk.html Delphi / Free Pascal link is at the bottom of that page. Please note I

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-09 Thread Reenen Laurie
My needs are pretty simple... I want something that will combine X files into 1 file, and then later read any 1 of those X file back into either a TImage (Jpg etc.) or into a TStringlist. I don't have many restrictions... My files won't likely be more than 500kb, and typically won't contain 30

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-09 Thread Reenen Laurie
Initially I don't even need the files inside to be editable... On Mon, Feb 9, 2009 at 10:04 PM, Reenen Laurie rlau...@gmail.com wrote: My needs are pretty simple... I want something that will combine X files into 1 file, and then later read any 1 of those X file back into either a TImage

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-09 Thread Vincent Snijders
Reenen Laurie schreef: My needs are pretty simple... I want something that will combine X files into 1 file, and then later read any 1 of those X file back into either a TImage (Jpg etc.) or into a TStringlist. I don't have many restrictions... My files won't likely be more than

Re: [Lazarus] Zipfiles using Paszlib...

2009-02-09 Thread Graeme Geldenhuys
2009/2/9 Reenen Laurie rlau...@gmail.com: My needs are pretty simple... That's what we all say. :-) So if someone has a virtual file system somewhere available, then that'll work too. I am a little pushed for time, and if someone can point me to someplace where this is done I'd greatly

[Lazarus] Zipfiles using Paszlib...

2009-02-08 Thread Reenen Laurie
Hi, I am trying to create zip files for my application (using Paszlib's Zip and ziptools), using the store method. However, none of the zipfiles I've created works. I've tested the minizip example in the FPC folder, and after I compiled it (on linux) by symlinking to zlib.pp in