Hi Everybody :
Im trying to extract the binary output of a process, and then
feed that as input into another process using runtime.exec().
Is this possible ? I know that you can send a
String as input to runtime.exec(), but what happens when you want to send a String of binary
data as input to a process ?
Heres the code ...
//Blob b is obtained from the database.
//sysprog is an arbitrary system program which accepts binary data...
Process p = runtime.exec(b.getBinaryStream() + " | " + sysproc )
OutputStream s = p.getOutputStream();
runtime.exec(s.getOutputStream() + " | " + sysprog )
Anyways...Im totally lost about how to do this so any suggestions would really be appreciated !!!
J