Zip - AddPackFile - deflate or store

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Sebastian0107
New User
New User
Posts: 4
Joined: Fri Mar 18, 2016 3:26 pm

Zip - AddPackFile - deflate or store

Post by Sebastian0107 »

It should be possible to choose between "deflate" or "store" to include a mimetype with no compression. It would be possible to generate OpenDocument- and ePub-Files with PB.
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Zip - AddPackFile - deflate or store

Post by collectordave »

I am also looking into openoffice files to see if we can create and change them and from your first thread http://www.purebasic.fr/english/viewtop ... &hilit=zip came up with a zip\unzip programme to help make a start.

Hope it is of use.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Sebastian0107
New User
New User
Posts: 4
Joined: Fri Mar 18, 2016 3:26 pm

Re: Zip - AddPackFile - deflate or store

Post by Sebastian0107 »

Unfortunately it is not possible to put uncompressed files into a zip-container. Without the choice of "store" or "deflate" it is not possible to create openDocument-Files and other files, which must have a uncompressed mimetype.
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Zip - AddPackFile - deflate or store

Post by collectordave »

Allready modyfied open office spreadsheets by unzipping changing and then rezipping so not attempting to put an uncompressed file into a zip container unzip first.

Have also tried with a .odt file. Unzipped then rezipped no problem. Try this http://www.purebasic.fr/english/viewtop ... 12&t=65415
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Post Reply