Base64 Stream implementation and PipeInputStream