FO and Sockets.

2001-09-26 Thread Hinrich.Boog

Hi there,

I have a problem with using FOP over Sockets, maybe someone out there knows a 
workaround.
I just wanted to implement a small formatting Server, that listens to a port and in 
case a
request comes in, takes the xml:fo document from that request, transforms it and sends 
the
response back.

The communication works fine, the sending of the document and the transforming as 
well, I
just have to put it together, which does not work: My client sends the stuff, the 
server
starts transforming, but before the server is finished, the client shuts down.

Seems like the first part of my PDF document arrived, but then there's null and you 
can
use something like

while ((String in = inputStream.readLine()) != null) {
//do something
}

Here's the stuff that comes out of the server as long as the clients working...

Trying to read the answer
%PDF-1.3
%ª«¬­
null
Connection closed
File can be found in outfile.pdf

(At this time, the server was still building up the pages)

Does anyone know, how to handle this problem ?

Thanks
Hinrich


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: FO and Sockets. (

2001-09-26 Thread Hinrich.Boog



I would post it to some other mailing list, if it wasn't about the Fop-Renderer. How 
can I
check how and if the Renderer flushes the result to my output Stream ? I was wondering 
if
anyone has used it in those combinations



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]