Something along these lines:
File tempPDF = File.createTempFile("temp", ".tmp");
OutputStream out = new java.io.FileOutputStream(tempPDF);
out = new BufferedOutputStream(out);
try {
driver.setOutputStream(out);
[..]
finally {
out.close();
}
Sometime later:
tempPDF.delete();
or:
tempPDF.deleteOnExit(); //right after the first line above
See Javadocs for details.
On 12.06.2003 23:25:34 Patrick Mannhart wrote:
> thanks a lot for answer but i don't understand what you mean.
>
> ok... safe the file in a temporary directory... but not on the server who
> the application is starting from.
> (that means not on the tomcatserver or webpshere or whatever)
> It's also possible to safe it on the users own pc.
> how can i do this? StreamWriter and path?
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]