Hm - the code doesn't seem to work like I thought. I am creating a ByteArray of a word-file and giving it to the encode function. When I decode it and writing the bytearray back to the hdd, the size is bigger and the file cannot be opened

What am I doing wrong?! Isn't it possible to encode a ByteArray to base64? How would you encode an exe-file to base64?