commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bauke Scholtz (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CODEC-101) Base64InputStream#read(byte[]) incorrectly returns 0 at end of any stream which is multiple of 3 bytes long
Date Thu, 03 Jun 2010 00:15:57 GMT

    [ https://issues.apache.org/jira/browse/CODEC-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874878#action_12874878
] 

Bauke Scholtz commented on CODEC-101:
-------------------------------------

The fix works. As to nailing down the root cause, the credit goes to someone else, the user
named Keith Randall nailed it down in this topic at Stackoverflow: http://stackoverflow.com/questions/2937161/problem-using-base64-encoder-and-inputstreamreader


> Base64InputStream#read(byte[]) incorrectly returns 0 at end of any stream which is multiple
of 3 bytes long
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CODEC-101
>                 URL: https://issues.apache.org/jira/browse/CODEC-101
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: WinXP, JDK 1.6.0_14
>            Reporter: Bauke Scholtz
>         Attachments: codec-101-fix.patch
>
>
> Using new InputStreamReader(new Base64InputStream(in, true)) sometimes fails with "java.io.IOException:
Underlying input stream returned zero bytes".
> This is been tracked down that Base64InputStream#read(byte[]) incorrectly returns 0 at
end of any stream which is multiple of 3 bytes long.

-- 
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