[
https://issues.apache.org/jira/browse/CODEC-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095034#comment-17095034
]
sagarika commented on CODEC-288:
--------------------------------
[~aherbert]
w.r.t this comment
Ensure you are not using the same instance of Base64 with concurrent threads.
Decoding using the static method will ensure you have a thread-safe instance
for decoding.
Is it like with 1.14 release should we still not use the same instance of
Base64 ?
> during Base64 decode for 24 byte length string ,the function returns byte
> array which is less than 18 bytes
> -----------------------------------------------------------------------------------------------------------
>
> Key: CODEC-288
> URL: https://issues.apache.org/jira/browse/CODEC-288
> Project: Commons Codec
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: effected all the stacks
> Reporter: sagarika
> Priority: Major
>
> string of byte length 24 AQAAAAFxB7VyAgAAAAEPEMdg
> returned byte array length :6 ideally it should be of length 18.
>
> public byte[] decode(String pArray) {
> return this.decode(StringUtils.getBytesUtf8(pArray));
> }
--
This message was sent by Atlassian Jira
(v8.3.4#803005)