Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting base64String to binary.

3044795Apr 27 2016 — edited Apr 28 2016

I think this is most common requirement but could not find the solution , so starting a new conversation .

OSB receives the base64String content of the Image/ PDF  from the mobile. So now at osb the Base64String  needed to be converted into mtom attachment and should be sent to webservice to save to database.


In Osb I could see the possibilities to convert the  binary to String content with few options like fn-bea:binary-to-text($arg0-anyType, $arg1-string) functions.
Could not find the reverse operation i.e  to convert from base64string to binary.


Here are the few options that i tried.
1)There is one function xs:base64Binary($arg-atomic) . But  the fuction is only returning the input given to it.so this did not serve the requirement.
2)Tried to use the Java callout.But the java callout returntype is sting .But we need  byte[] as ouput .Converting the binary data to the String loses its meaning.


I would be greatly thankful if some one could provide a solution for converting the base64String to binary content .

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2016
Added on Apr 27 2016
5 comments
1,662 views