Please move down to the 2nd update. I didn\'t want to change the previous context of this question.
I\'m using wkhtmltoimage from a Java app.
<
After you create the Process object, you can call getOutputStream() in order to get hold of a stream that sends its contents to the process' standard input.
Once you have hold of this you can use Java's standard IO to write whatever bytes to the this stream you want (including wrapping it in a Writer, adding buffering, etc.) - and as you write them, they'll be read by the process as soon as they're flushed.