Mittwoch, September 07, 2005

 

BPEL Binary FileAdapter

within Oracle BPEL you have the choice to interprete file data as XML stream or as binary data. In the case of binary data the imput type will be a base64 encoded string representation. To decode the Base64 String you can use following java snipped:


CubeDOMElement doc = (CubeDOMElement)getVariableData("myVariable", "opaque","/ns2:opaqueElement");
String str = (String)doc.getData();
byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(str);




<< Home

This page is powered by Blogger. Isn't yours?