Hi,
I need to convert BLOB data to a string. There is this BLOB data which is a combination of string and media files. I know we won’t be able to see media data as string. But at least I need to see the text part in the BLOB data. I have this java code to convert BLOB to a byte array and then I am using “bytesToString” service. But its not giving me the output as required. Output is displayed like 0 | 0 | |E || .
IDataCursor idc = pipeline.getCursor();
idc.first(“blob”);
oracle.sql.BLOB blobObj = (oracle.sql.BLOB)idc.getValue();
try {
long length = blobObj.length();
byte msg = blobObj.getBytes(1, (int)blobObj.length());
idc.insertAfter(“bytes”, msg);
} catch (Exception e){
}
Any ideas,
Thanks,
Pauly
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB