ReadMe-English hat geschrieben:
About PureBin2Data
Copyright 2005 by Thomas (ts-soft) Schulz
Version 1.5.12.12 beta
What does this tool?
- converts any binary file (up to 64MB) into a PureBasic DataSection
- compresses the DataSection (selectable JCalG1 or BriefLZ)
Why?
- smaller filesize
- sharing complete sourcecode
- posting source in boards
- makes it more difficult to steal own picture- and/or soundfiles
using the commandline:
- at least one parameter necessary (File with path)
- optional compressionmethod:
0 = no compression
1 = JCalG1 (PureBasic internal compression)
2 = BriefLZ (uses the PBOSL_BriefLZ UserLib)
- Parametersequence doesn't matter
- if no compressionmethod is set, the last used method of the GUI will be used.
The binary file may not be on a non-writable Data medium, because the Datasection will
be created automatically in the same path! The filename will be created out of the
filename of the binary file without the extension with a trailing "_Include.pbi".
Files with the same filename will be overwritten immediately, so be careful!
After creation you will see a MessageBox, which will tell you, if anything went well
or not.
Reasons for failing could be:
- Data medium is not writable
- File is too big (> 64 MByte)
- File is allready compressed
e.g. *.jpg, *.png or *.zip-files.
Possible Solution:
Try again without compression
GUI:
The GUI contains:
- Compressionmethod
- Always OnTopWindow CheckBox (helpful when using Drag & Drop)
- Drop-area
- Link to my homepage
How to use the generated includefile with the DataSection:
I made a "CatchData-Procedure" to recreate the original Data
You'll find this procedure in the "PureBin2Data_Include.pbi" include-file.
If you use it more often, i suggest to add it directly into the PB-Ide.
It is also allowed to put this procedure into a UserLib if you wish.
A simple example is available in the example-folder.
Feedback much appreciated!