in reply to Re^2: Remove base64 encoded trailing character
in thread Remove base64 encoded trailing character
In theory, the padding character is not needed for decoding, since the number of missing bytes can be calculated from the number of Base64 digits. In some implementations, the padding character is mandatory, while for others it is not used. One case in which padding characters are required is concatenating multiple Base64 encoded files.
Oh and:
If you want to encode a large file, you should encode it in chunks that are a multiple of 57 bytes. This ensures that the base64 lines line up and that you do not end up with padding in the middle.
Read the source for more: Base64.pm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Remove base64 encoded trailing character
by hankcoder (Scribe) on Mar 27, 2016 at 17:50 UTC |