Ah, now we’re on the same page.
But as memory serves, that was one of the first things I tried, and it wouldn’t compile! Why I can’t cast an Object to a byte array I don’t know, but I’ll try that again when I get a chance. In the meantime, I think I may have found a feasible approach with something like:
// position cursor at fileContent, then …
Object data = cursor.getValue();
OjbectOutputStream oos = new ObjectOutputStream (new FileOutputStream (filename));
oos.writeObject(data);
oos.flush;
oos.close;
This compiled successfully, but unfortunately another problem with my server is preventing me from testing it right now. So I’ll have to try it in the morning.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB