The only thing that can reliably done with the byte array returned by toBinData is to pass it to fromBinData. You definitely cannot load the file using getFile with loadAs string and expect a usable string.
In the for loop: for(int i=0;i<be.length;i++)
{
QDoc[i] = IDataFactory.create();
IDataCursor pipelineCursor2 = QDoc[i].getCursor();
byte[] contentBytes = be[i].toBinData();
pipelineCursor2.last();
pipelineCursor2.insertAfter(“evtType”, be[i].getTypeName());
//pipelineCursor2.insertAfter(“content”, be[i].toString());
pipelineCursor2.insertAfter(“content”, contentBytes);
pipelineCursor2.destroy();
}
Assuming you’ve uncommented the first insertAfter is the second insertAfter interferring in some way. What to you see if the second insertAfter is commented out? Or if you use a different variable name for the string?
#Universal-Messaging-Broker#webMethods#broker#Integration-Server-and-ESB