Siddesh Bm wrote:
After compressing we are encoding data using BASE64Encoder. But after encoding the compressed data, size is increasing and length of encoded data is 666748 bytes.
Why after encoding, data size is increasing? Is there any other best encoding techniques?
That's how base64 encoding works... it takes bytes which has 256 possible values and limits them to only 64 possible values (plus one or two for control purposes). These values are limited to the ASCII printable range, and hence, can pass through systems that will choke on binary data.
So what happens when 8 bits of a byte must fit into bytes that effectively only has 5 bits ? Obviously, you need more bytes.
Henry