The function will be use to convert binary data in OSB context variable into string.
Another useful POJO to add to your OSBToolkit.java.
public class OSBToolkit
{
public OSBToolkit()
{
}
public static String convertOSBBinaryContentToString(DataSource ds) throws Exception
{
InputStream is=ds.getInputStream();
BufferedReader din = new BufferedReader(new InputStreamReader(is));
StringBuffer sb = new StringBuffer();
try {
String line = null;
while((line=din.readLine()) != null){
sb.append(line+"\n");
}
}
finally{
try{
is.close();
} catch(IOException ex){}
}
return sb.toString();
}
}
Topics
- 12c (1)
- Architecture (2)
- B2B (1)
- Banking (1)
- BPEL (3)
- Cisco (1)
- ebXML (1)
- EDIFACT (1)
- Effective Management (2)
- Engineered Systems (2)
- Exadata (2)
- Exalogic (1)
- Governance (1)
- Innovative (1)
- Issue Management (1)
- ITIL (1)
- Java (3)
- JDeveloper (2)
- Methods (27)
- Mobility (1)
- OFM (5)
- OIC (1)
- Oracle SOA Suite (7)
- OSB (1)
- Principles (8)
- Release Management (1)
- Scripting (1)
- Standards (3)
- Virtualization (1)
- webMethods (6)
- XPath (1)