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?