james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Burrell Donkin (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] Closed: (MIME4J-67) Base64Encoder fails to encode streams longer than its buffer size (1024)
Date Wed, 04 Feb 2009 20:52:01 GMT

     [ https://issues.apache.org/jira/browse/MIME4J-67?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Burrell Donkin closed MIME4J-67.
---------------------------------------


Closing all issues fixed previously, after a brief review of each.

> Base64Encoder fails to encode streams longer than its buffer size (1024)
> ------------------------------------------------------------------------
>
>                 Key: MIME4J-67
>                 URL: https://issues.apache.org/jira/browse/MIME4J-67
>             Project: JAMES Mime4j
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Stefano Bagnara
>            Assignee: Markus Wiederkehr
>            Priority: Minor
>             Fix For: 0.6
>
>
> When encoding streams longer than 1024 bytes the encoder simply concatenate the base64
version of each 1024 chunk and this is wrong. Base64 streams are only concatenable when the
original text length was a multiple of 3. Supporting buffer chunks encoding require keeping
the last 1-2 bytes in a buffer and eventually convert them to base64 ending sequences only
when the stream is closed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message