This seems to create the temp file on the server. Whereas the file name
issue we were trying to solve occurs on the client side.

I would be surprised if this works but am curious to know if it does.

Nurettin

On Thu, Jan 13, 2011 at 10:55 AM, Ed M <edwin.f.mcgee...@saic.com> wrote:

>
> If you are using a FileOutputStream to write your physical file, have you
> considered creating a temporary file (File.CreateTemporaryFile("filename",
> ".pdf")) rather than using File?
>
> example:
> File myFile = File.createTemporaryFile("filename", ".pdf");
> file.deleteOnExit();  // to cleanup your temporary files when the procedure
> call exits.
> BufferedOutputStream outputStream = new BufferedOutputStream(new
> FileOutputStream(myFile));
> --
> View this message in context:
> http://itext-general.2136553.n4.nabble.com/Saving-PDF-file-generated-by-Servlet-with-a-different-name-tp3209538p3216073.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>



-- 
Nurettin DAG
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to