TIMOB-15594-Used the Base64OutputStream to encode