Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Do 23.08.07 21:36 
hi

ich würde gerne eine oder mehrere dateien in ein archiv packen (zip oder rar)
und das solldann so klein wie möglch rauskommen
aber was ist kleiner zip oder rar?
und das soll sich ungefähr so gut verpacken wie das beste was winrar hinbekomt oder besser natürlich wenns geht!

Danke im voraus
Mfg
Philipp
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Do 23.08.07 22:55 
Schau mal in deine Signatur...
Für das zip-Format gibt es Komponenten, für 7-Zip denke ich auch, weil das OS ist, dann auch nochma bei bz2 schauen..
Einzig WinRar dürfte schwer werden, das ist proprietäres Format und kann imho nur von WinRar selbst geschrieben werden - alles andere dürfte illegal sein.

Also, einfach mal Google oder die Forensuche befragen..
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 24.08.07 07:38 
Die ultimative Komprimierung gibt es nicht. Es gibt immer mal wieder Fälle, wo das eine oder andere Verfahren besser ist. Soweit ich gehört habe, liefert 7zip fast immer die besten Ergebnisse - obs dafür was für Delphi gibt - keine Ahnung. Das ist noch ziemlich neu, OS hin oder her.
Ansonsten kann auch das normale zip sehr gut sein - sieht man ja an "42.zip", wo mehrere GB auf ein paar kb runterkomprimiert werden.

_________________
We are, we were and will not be.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 24.08.07 07:55 
user profile iconGausi hat folgendes geschrieben:
[...] sieht man ja an "42.zip", wo mehrere GB auf ein paar kb runterkomprimiert werden.

GB? Wäre ja langweilig. Wenn du die Dateien alle entpackst, sind sie 4,5 Peta-Byte groß (Peta > Terra > Giga) :mrgreen:

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Fr 24.08.07 09:15 
Peta > Terra > Giga?
ne!
Kilo > Mega > Giga > Terra > Peta > Exa

und was is 42.zip?
ein paar GB uaf wenige KB?!?!?!?!?!?! ahhhhh haleluja!
ich werd mal sehen obs von 7Zip was für delphi gibt!
danke!
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 24.08.07 09:17 
user profile iconPhilipp_Reitter hat folgendes geschrieben:
Peta > Terra > Giga?
ne!
Kilo > Mega > Giga > Terra > Peta > Exa

Warum soll 1.000 > 1.000.000 sein?
user profile iconPhilipp_Reitter hat folgendes geschrieben:
und was is 42.zip?
ein paar GB uaf wenige KB?!?!?!?!?!?! ahhhhh haleluja!

Wie ich bereits erwähnte, sind es mehrere Peta-Byte auf 42 KByte -> Suche bei Google 42.ZIP

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Fr 24.08.07 09:32 
user profile iconGTA-Place hat folgendes geschrieben:
user profile iconPhilipp_Reitter hat folgendes geschrieben:
Peta > Terra > Giga?
ne!
Kilo > Mega > Giga > Terra > Peta > Exa

Warum soll 1.000 > 1.000.000 sein?
user profile iconPhilipp_Reitter hat folgendes geschrieben:
und was is 42.zip?
ein paar GB uaf wenige KB?!?!?!?!?!?! ahhhhh haleluja!

Wie ich bereits erwähnte, sind es mehrere Peta-Byte auf 42 KByte -> Suche bei Google 42.ZIP

Wie geil ist das denn?? Hab davon noch nie was gehört, aber das ist ja echt mal sowas von genial...

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 28

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 24.08.07 09:52 
und was ist in der einen datei drin, die da so kleingemanscht wurde ? hab grad keine lust meine 10pb festplatte anzuschließen ^^


€: 4 Billionen 0xAA

deshalb lässt die sich auch so krass komprimieren Oo

mfg
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Fr 24.08.07 10:38 
Für das weniger verbreitete SQX-Format gibt's auch ein SDK mit Delphi-Beispielen. Die Komprimierung ist in etwa so gut wie 7zip.

OT: Auch interessant ist die selfgz.gz, ein GZip-Archiv, das sich selber in komprimierter Form enthält. ;)
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 24.08.07 12:47 
um mich da mal einzumischen: 7zip hat ne dll die man sich runterladen kann und dasnn unter der GPL verwenden darf glaub ich. So wars halt wie ich das letzte mal dort hingeschaut hab um mich über den Algorithmus zu informieren.

lg elundril
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 24.08.07 15:54 
ftp.elf.stuba.sk/pub/pc/pack/inno7zip.zip

Requires: ISTool, ISPP, and 7-zip installed.


Pascal LZMA SDK
Pascal port of the LZMA SDK from www.7-zip.org
Compatilbe with Borland Delphi, Borland Kylix, Free Pascal and the Lazarus IDE

www.birtles.org.uk/p...ramming/LZMA.442b.7z
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Sa 25.08.07 14:00 
hi

ich hab mir die 7Zip komponente heruntergeladen und mir von der demo volgenden code abgeschaut und in mein programm eingebaut

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
rocedure TfrmMain.SevenZip1Listfile(Sender: TObject; Filename: WideString;
  Fileindex, FileSizeU, FileSizeP, Fileattr, Filecrc: Cardinal;
  Filemethod: WideString; FileTime: Double);
var
  l :tlistitem;
begin
  l := listview1.Items.Add;
  l.Caption := extractfilename(filename);
  l.SubItems.Add(extractfilepath(filename));
  l.SubItems.Add(inttostr(Fileattr));
  l.SubItems.Add(inttostr(filesizep));
  l.SubItems.Add(inttostr(filesizeu));
end;



nur er addet gar nichts in meine liste!!!
beim hinzufügen von dateien und das sieht so aus:



ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
  if Opendialog.Execute then begin

    frmmain.sevenzip1.VolumeSize := 0;

    for i := 0 to opendialog.Files.count-1 do
      Frmmain.SevenZip1.Files.AddString(opendialog.Files[i]);

    i := frmmain.Sevenzip1.Add;

  end;



aber es geht einfach ned!

Mfg
Philipp
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Sa 25.08.07 14:17 
user profile iconPhilipp_Reitter hat folgendes geschrieben:
Peta > Terra > Giga?

Und noch Ocean 13 auch noch "Xetra".
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Sa 25.08.07 14:42 
dann kommtirgendwann einmal Gogool dh. 100 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 00
und dann GogoolPlex d.h. eine zahl mit 100 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 0000 000 000 00 nullen
man behaupeted dass es unmöglich sei diese zahl darzustellen denn die materie des gesamted universums soll dazu nicht ausreichen was ich nicht glaube!!
denn wenn man eine 0 als 10 atomen baue und selbnst ein haar aber millionen atome hat ist es von mir aus locket möglich diese zahl darzustellen!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 25.08.07 14:53 
Die geschätzte Anzahl der Atome im Universum liegt bei ca. 10^78.

Eine Zahl mit 10^100 Nullen (= Gogolplex) ist im Dezimalsystem also nicht darstellbar. Es sei denn, man würde je 10^22 Ziffern mit Hilfe eines einzelnen Atoms darstellen. Aber das ist hier nicht das Thema.

_________________
We are, we were and will not be.