synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-1012) Add Xpath Base64 decode function
Date Fri, 27 May 2016 20:32:13 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15304719#comment-15304719
] 

Andreas Veithen commented on SYNAPSE-1012:
------------------------------------------

byte[] decodedValue = new Base64().decode(value.getBytes());

That is still not correct because getBytes() uses the platform default encoding. The correct
way to do this is to use new Base64().decode(value).

> Add Xpath Base64 decode function
> --------------------------------
>
>                 Key: SYNAPSE-1012
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-1012
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: prabath ariyarathna
>            Assignee: Hiranya Jayathilaka
>             Fix For: 3.0
>
>         Attachments: base64_decode_function.diff, remove_unwanted_charset.diff
>
>
> We only have xpath Encode function with the current synapse implementation.  Once this
function will be added to the synapse. We can simply decode the base64 encoded string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message