The documentation says "The base64 encoded result will have a length of up to 4 * $byte_count."
This is wrong. I think it is always exactly ceil($byte_count * 4 / 3).
Note that drupal_base64_encode() removes the padding equal signs.
The documentation says "The base64 encoded result will have a length of up to 4 * $byte_count."
This is wrong. I think it is always exactly ceil($byte_count * 4 / 3).
Note that drupal_base64_encode() removes the padding equal signs.