Base64 construe!
aaaaaaaa|bbbbbbbb|cccccccc| |dddddddd| |ffffffff|
3byte to 4byte is Encode
00aaaaaa|00aabbbb|00bbbbcc|00cccccc| 3byte NewLen=4
00aaaaaa|00aabbbb|00bbbbcc|00cccccc| |00dddddd|00dd0000| 4byte NewLen=6
00aaaaaa|00aabbbb|00bbbbcc|00cccccc| |00dddddd|00ddffff|0000ffff| 5byte NewLen=7
if Oldlen 3 >0 then NewLen=OldLen trunc 3 * 4 + OldLen mod 3 +1
else NeLen=OldLen/3*4