PDA

View Full Version : Encoding binary files as base64?



Darkhog
29-07-2013, 08:38 PM
Is there any component that can convert binary files to base64 string? I'm helping my friend writing editor for his game. It has xml-based file format, but my friend wants to store all data, like tileset image, etc. in it so he would need only to move/load xml file then decode data. We both get to understanding that encoding this into base64 strings would be best choice. But the problem is that I don't know how to do this. Any ideas?

Murmandamus
30-07-2013, 07:34 AM
If you are using FreePascal/Lazarus:

http://www.freepascal.org/docs-html/fcl/base64/index.html