I am perhaps a little confused about how to go about this.
I want to includebinary a 7z file under 400 Kb
Then search that pack internally for any particular file inside it to extract out.
Cant you open memory as a pack without it being a file?
Question about packer
Re: Question about packer
Nope, packed files have always to be read from disc. If it contains only one file you can use CompressMemory(), save it and then include it (including the info how big it will be after unpacking) and include your own unpack routine
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: Question about packer
I was afraid of that.jacdelad wrote: Fri Aug 12, 2022 4:09 pm Nope, packed files have always to be read from disc. If it contains only one file you can use CompressMemory(), save it and then include it (including the info how big it will be after unpacking) and include your own unpack routine
So if I understand what you have described.
I make a packaging program:
Load each file individually, Compress them in memory. Save them out as individual compressed data files. Then IncludeBinary() them into my application.
Then in my application, uncompress them in memory and then writedata(file, ?afile, ?afile_end - ?afile)
Re: Question about packer
Yeah, that's what I wanted to say.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: Question about packer
you can use EZpack to open files from memory, look at the examples in the zip to see how to use it
Topic
viewtopic.php?t=52586
download link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Topic
viewtopic.php?t=52586
download link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Re: Question about packer
Wow, super thanks idle! I can't wait to check this out.idle wrote: Sun Aug 14, 2022 1:11 am you can use EZpack to open files from memory, look at the examples in the zip to see how to use it
Topic
viewtopic.php?t=52586
download link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Re: Question about packer
Great jobidle wrote: Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.
Re: Question about packer
Should be fixed now thanks.tester wrote: Sun Aug 28, 2022 9:36 pmGreat jobidle wrote: Sun Aug 14, 2022 1:11 amdownload link
https://www.dropbox.com/s/f76f9cvjfmv88h9/EzPack.zip.
Please fix the corruption of the EzPack_7_OpenFileOnDemand.pb file in line 34.



