aspose file tools
The moose likes Beginning Java and the fly likes using dynamic path in FileOutputStream( Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "using dynamic path in FileOutputStream("")" Watch "using dynamic path in FileOutputStream("")" New topic
Author

using dynamic path in FileOutputStream("")

vineet varghese
Greenhorn

Joined: Aug 16, 2011
Posts: 13
hi all
i have a String user_id ..which CHANGES on every request
and i am using PdfWriter.getInstance(document, new FileOutputStream("C:\\hello.pdf"));
to generate my pdf in ..but i the pdf should contain the user_id as a part of its name ........how can i do it ?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8430

C:\\user_id_hello.pdf?


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
vineet varghese
Greenhorn

Joined: Aug 16, 2011
Posts: 13
the value of the string user_id i meant ...
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16482
    
    2

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: using dynamic path in FileOutputStream("")
 
Similar Threads
Jsf relative path?
reading a file written to OutputStream
display pdf
Pdf opens blank in browser
How to display pdf file in broswer