# perldoc > MIME::Decoder::Base64

## NAME
    [MIME::Decoder::Base64](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3ADecoder%3A%3ABase64/markdown) - encode/decode a "base64" stream

## SYNOPSIS
    A generic decoder object; see [MIME::Decoder](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3ADecoder/markdown) for usage.

## DESCRIPTION
    A [MIME::Decoder](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3ADecoder/markdown) subclass for the "base64" encoding. The name was chosen to jibe with the
    pre-existing [MIME::Base64](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3ABase64/markdown) utility package, which this class actually uses to translate each
    chunk.

    *   When decoding, the input is read one line at a time. The input accumulates in an internal
        buffer, which is decoded in multiple-of-4-sized chunks (plus a possible "leftover" input
        chunk, of course).

    *   When encoding, the input is read 6840 (120 * 57) bytes at a time. Each section of 57 bytes
        is encoded as a line containing 76 Base64 characters.

## SEE ALSO
    [MIME::Decoder](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3ADecoder/markdown)

## AUTHOR
    Eryq (<eryq@zeegee.com>), ZeeGee Software Inc (<http://www.zeegee.com>).

    All rights reserved. This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

