English 中文(简体)
Delphi-5 single-file storage solution?
原标题:

Is there a Delphi-5 solution to easily integrate single-file storage into existing code? I would like to have files like Java *.jar or Openoffice document files which are zipped/compressed files and folders but with their own file extension.

Edit: I know some ZIP capable components but in a nutshell I want to access files within the "container" and use normal file handling routines on them (eg. TStringList.SaveToFile). Any overhead about compress/uncompress should be handled by the component.

最佳回答

It looks like AidAim Software might have what you need.

问题回答

Just use the .zip format. You can change the file extension to whatever you want, its the file contents that are important. There are many third-party Zip solutions available for Delphi, both freeware and commercial. Look around (my company uses ZipForge)

I use THKStream for this task. It works good and fast and is easy to use, you can store normal Streams in it and it compresses them to a single file. Freeware. Here is a Link: http://www.xarka.com/freeware/components.html

SolFS is the answer. Check the link for comparison with AidAim.

Take a look at this OpenSource SynZip unit. It s even faster for decompression than the default unit shipped with Delphi, and it will generate a smaller exe (crc tables are created at startup).

For Delphi 5, take a look at this another Open Source pure pascal unit, named PasZip.

I use it in very small installer exe. It can uncompress any zip content, and you can even append the zip to the exe. See this link to get how to use such a zip embedded to the exe.





相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签