Pack 7zip text file over 4Gb

Just starting out? Need help? Post your questions and find answers here.
Rjevsky
User
User
Posts: 23
Joined: Tue Jul 18, 2017 3:41 pm

Pack 7zip text file over 4Gb

Post by Rjevsky »

Code: Select all

  UseLZMAPacker()
  ; Create the packed file
  If CreatePack(0, "mycompressedfiles2.7z")
    ; add your files
    AddPackFile(0, "text_over_4_gb_size.txt", "text_over_4_gb_size.txt") 
    ClosePack(0)
  EndIf
text_over_4_gb_size.txt size is 4 405 088 234 bytes
The result is small size archive with a packed piece of text file

I use demo version of PB 5.72
User avatar
mk-soft
Always Here
Always Here
Posts: 6209
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Pack 7zip text file over 4Gb

Post by mk-soft »

Is a limit of LZMA
The bigger the dictionary, the better the compression ratio usually is, but dictionaries bigger than the uncompressed data are waste of RAM. Typical dictionary size is from 64 KiB to 64 MiB. The minimum is 4 KiB. The maximum for compression is currently 1.5 GiB.
Search with google
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Rjevsky
User
User
Posts: 23
Joined: Tue Jul 18, 2017 3:41 pm

Re: Pack 7zip text file over 4Gb

Post by Rjevsky »

If I use 7zip archiver then my pack is ok
Image

I tried all the methods of packers from purebasic and there was always an unsuccessful result
Post Reply