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 .