You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/06/05 16:22:20 UTC
[jira] [Updated] (FLEX-14994) The offset parameter of
Base64Encoder.encodeBytes doesn't work if it's not zero.
[ https://issues.apache.org/jira/browse/FLEX-14994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-14994:
---------------------------------
Labels: easytest (was: )
> The offset parameter of Base64Encoder.encodeBytes doesn't work if it's not zero.
> --------------------------------------------------------------------------------
>
> Key: FLEX-14994
> URL: https://issues.apache.org/jira/browse/FLEX-14994
> Project: Apache Flex
> Issue Type: Bug
> Components: .Unspecified - Framework
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): Windows
> Affected OS(s):
> Browser: Firefox 2.x
> Language Found: Japanese
> Reporter: Adobe JIRA
> Labels: easytest
>
> Steps to reproduce:
> 1. run attached mxml application
> 2. click "test" button
> 3. check debug console in FlexBuilder
>
> Actual Results:
> I can't get encoded text if offset is not zero.
>
> Expected Results:
> I can get encoded text if offset is not zero.
>
>
> Workaround (if any):
> creating another small bytearray between offset and length
>
> How to fix
> // see encodeBytes in Base64Encoder.as
> /* original code is below. This is wrong I think.
> var plainIndex:uint = offset;
> while (plainIndex < length)
> */
> /* This should be below.
> var plainIndex:uint = offset;
> while (plainIndex < offset + length)
> */
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira