Jnlp file parameter element problem

Hello all,
I have a jar file which contains all the class files and an configuration file of type(.cfg).
For my application to run properly i need to pass this .cfg file as an argument to the main method in one of the file in the jar...
i did pass the name of the file as one of the parameter element,but my application is not initialized and not working.but the jar files have been deployed in the local machine.
so my question is , is there a way so that i can pass my file as a parameter to the main method through jnlp xml file.

thanks andrew,
but my problem is that i need to pass the path of my file along with the name of the file to the main method ...and in turn my main method will do all the required processing work..
the jar file that is to be deployed contains the class files and the .cfg file..
my jnlp files looks as follows:-
<jnlp spec="1.0+" codebase="$$codebase" href="voicechat.jnlp">
<information>
<title>SIP Based Voice Chat</title>
<vendor>First Internet Systems Pvt Ltd</vendor>
<description>Voice Chat</description>
<description kind="short">Voice Chat </description>
<icon href="images/demologo.gif"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="sip.jar"/>
<jar href="ua.jar"/>
</resources>
<application-desc main-class="local.ua.GraphicalUA">
<argument>-f</argument>
<argument>a.cfg</argument>
</application-desc>
</jnlp>
the second argument that i had passed is the name of the file in the jar to be passed..
but as a result when i invoke this file, the jar files are deployed but application is not starting as expected..for it to work the file and its path has to be passed to the main method..
which is what i tried through argument element...but it does not seem to work..
so all that i need to know is that, is it possible to pass a file and its path as an argument in the jnlp file..

Similar Messages

  • File Upload element Problem

    Hello All,
    We have a problem regarding the File Upload button in Webdynpro.
    when we upload a file using this element and goto another view and comeback, the upload element is not showing any filename.
    But when debugged, the fileupload context node still has the data. Just it is not showing in the UI.
    Is it an existing problem with File Upload? Or do we have to do anything to make the filename visible.
    Thanks,
    Anand

    Hi,
    this works as designed, see the section on browser details <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm">here</a>
    Regards, Heidi

  • Problem in jnlp file

    hi,
    For sandbox i created the repository.jnlp file and used.
    at the same time i created the repository.jnlp file for developement server but it giving the error as
    "com.sap.aii.utilxi.misc.api.ReconnectRuntimeException"
    "Cannot open connection on host: (     )  and port:
    i think there is problem in rmi port..
    Is the RMI port is same for both sandbox and Development server????
    regards
    sasi

    hi,
    ur not able to see the file in development pls do chk with the client nos and ports
    make that the file is in active mode
    provide some more info
    thnx
    sampath

  • How do you set a parameter value in a jnlp file?

    I am trying to figure out how to assign a value to a parameter within a jnlp file and then call that into the main class file. My main class file is below. I want to set firstName inside of the JNLP config file, but am convinced it is impossible. Any thoughts?
    public class Greeting
    private String firstName;
    public Greeting()
    public String getName ()
    if( firstName == null)
    firstName = "Day";
    return firstName;
    }//end method
    public static void main (String args[])
    Greeting greeting1 = new Greeting ();
    greeting1.getName();
    System.out.printf("%s\n", greeting1.getName());
    }

    In the jnlp file, add the Name as a runtime argument for running the Greeting class from its main(). Then add a constructor like
    public Greeting(string name){
    firstName = name;
    }and then change the Greeting greeting1 = new Greeting ();to Greeting greeting1 = new Greeting (args[0]);A side note, most people on here get all bent out of shape if you don't put your code in the Code formatter on here, in case you didn't know about it before. It's just easier to read.

  • Mapping problem of JnlpDownloadServlet from .Jnlp file

    Hello All,
    1. I am trying to run a java web start application, i am using tomcat 5.5.20 server. I am using the JnlpDownloadServlet to use the $$codebase and $$name to dynimically code the path to the jar's and the jnlp file.
    Here is what i have done:
    Here i have a JnlpDownloadServlet in a seperate folder called (D:/apache-tomcat-5.5.20/webapps/online/server1/WEB-INF/lib/jnlp-servlet.jar).
    2. Now i am placing my .jnlp and my application jar's in a seperate folder called *"client1"* (D:/apache-tomcat-5.5.20/webapps/online/client1/)
    I need to have the client1 and server1 folders and i have to map the servlet to the jnlp file, because i want to keep my jars's and the servlet in a seperate folders.
    3. I have the web.xml file in WEB-INF folder.
    4. web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
    <servlet>
    <servlet-name> JnlpDownloadServlet</servlet-name>
    <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    *<url-pattern>../client1/*.jnlp</url-pattern>* *<!-- /* I am having problem here, i think */ -->*
    </servlet-mapping>
    </web-app>
    Myapp.jnlp:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="$$codebase"
    href="$$name">
    <information>
    </information>
    <resources>
    <j2se version="1.6+"/>
    <jar href="$$codebase/XXXXXX.jar" main="true" download="eager"/>
         <jar href="$$codebase/XXXX.jar" download="eager"/>
         <jar href="$$codebase/XXXXX.jar" download="eager"/>
    <nativelib href="$$codebase/XXX.jar" />
    </resources>
    </jnlp>
    While i run the application. i get the following error:
    Error occured when trying to run a Java web start application
    BadFieldException[ The field <jnlp>codebase has an invalid value: $$codebase,$$codebase]
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I need to resolve the mapping issue, because the servlet is not running and the codebase and href variables are not populated.
    Thanks in Advance.

    Hi Peter,
    to use messages of two different SWCVs in a BPM you need to create a based on relationship between the two SWCVs in SLD. BPM restricts object usage to the SWCV in which the BPM itself resides, so to solve your problem go to the SLD content maintenance and select your SWCV of your BPM, click on Usage Dependencies, then select Define Dependencies, choose Installation Time and then the SWCV in which the other objects reside, click save and your done. You might need to reimport the SWCV to the repository to update the relationship there. It is updated as soon as you can see Basis Objects in the SWCV tree.
    best regards
    Christine

  • Problem with .jnlp files

    I have an iMac running 10.6.8. I'm having a problem with .jnlp files. I've downloaded two, cgoban.jnlp and gopanda.jnlp. When I double-click the file, nothing happens. If I Control-click and select Open With Java Web Start, same. Nothing happens. Software Update says my Java is up to date. Any ideas?

    A few other similar threads were solved by this — I'd like to give credit where credit's due but I can't find the original posting.
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.p list
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <!--
            <key>JavaWebComponentVersionMinimum</key>
            <string>1.6.0_37-b06-435</string>
    -->
            <key>LastModification</key>
            <string>Thu, 31 Jan 2013 04:41:14 GMT</string>
            <key>PlugInBlacklist</key>
            <dict>
                    <key>10</key>
                    <dict>
                            <key>com.macromedia.Flash Player.plugin</key>
                            <dict>
                                    <key>MinimumPlugInBundleVersion</key>
                                    <string>11.3.300.271</string>
                            </dict>
    <!--
                            <key>com.oracle.java.JavaAppletPlugin</key>
                            <dict>
                                    <key>MinimumPlugInBundleVersion</key>
                                    <string>1.7.11.22</string>
                            </dict>
    -->
                    </dict>
            </dict>
            <key>Version</key>
            <integer>2028</integer>
    </dict>
    </plist>

  • Problem changing JNLP file association

    I installed SUN JRE 1.5 Update 7 in a fresh Windows XP machine and found the registry recongizes the JNLP file extension is associatied with it. Then I installed an application that downloads IBM WebSphere Application Client 6 which actually uses IBM JRE 1.4.2 . After this installation IBM JRE changes the .jnlp file association from Sun JRE 1.5.0_07 to its own 1.4.2 version.
    Now I needed to change the JNLP file association back to previous one. I used Windows Explorer->Tool->Folder Options->File Types->Advanced->Edit and did that. However, I see my registry didn't change the association from IBM JRE to Sun JRE. But when I look at Java Control Panel, it says its associated with Sun JRE. Here is a windows shell script that I run to see the current JNLP file assocaition - which alwasy tells me its OBM JRE which is associated with the JNLP file extension. I tried restarting the machine, removing the cached copy from Java Control Panel without any difference.
    Can you tell me when this file type association may not work and why? Is there any Windows Security Patch issue here? Also what are the registry keys that I should look for (a few are mentioned in the script below)?
    code:
    // To run it:
    // CScript //Nologo JWS.js
    var fso = new ActiveXObject("Scripting.FileSystemObject")
    var gShell = new ActiveXObject("WScript.Shell")
    function print(s) {
    WScript.Echo(s)
    function JavaSoft_JWS() {
    var regKey = "HKLM\\SOFTWARE\\JavaSoft\\Java Web Start\\"
    var ver = gShell.RegRead(regKey + "\\CurrentVersion")
    var path = gShell.RegRead(regKey + "\\" + ver + "\\Home")
    var javaws = path + "\\javaws.exe"
    print("Sun JWS")
    print("\tversion: " + ver)
    print("\texe: " + javaws)
    function IBM_JWS() {
    var ver = "1.4.2"
    var regKey = "HKLM\\SOFTWARE\\IBM\\Java Web Start v" + ver + "\\"
    var path = gShell.RegRead(regKey + "\\" + ver + "\\Home")
    var javaws = path + "\\javaws.exe"
    print("IBM JWS for HKLM: ")
    print("\tversion: " + ver)
    print("\texe: " + javaws)
    function JNLP_ASSOC_HKEY_LOCAL() {
    var regKey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\JNLPFile\\Shell\\Open\\Command\\"
    var path = gShell.RegRead(regKey)
    var javaws = path + "\\javaws.exe"
    print("HKEY LOCAL MACHINE Current JNLP File Association: ")
    print("\texe: " + javaws)
    function JNLP_assoc_HKCR() {
    var regKey = "HKCR\\JNLPFile\\Shell\\Open\\Command\\"
    var path = gShell.RegRead(regKey)
    print("Current JNLPFIle association for HKCR:\t" + path)
    function main(args) {
    JNLP_ASSOC_HKEY_LOCAL()
    JNLP_assoc_HKCR()
    JavaSoft_JWS()
    IBM_JWS()
    ---------------------------------------

    Did the clients happen to know what version they were upgrading from? We have seen this mostly when a system upgrades major Java versions, eg from 1.6 or 1.7 or switching from 32 to 64 bit Java and C:\Windows\System32\javaws.exe disappears or something silly.

  • Problem with .jnlp file

    Hello,
    I am trying to use JFileChooser to open and select a file. I am using NetBeans to develope my application. When I run it in NetBeans it works just fine and I can open and select the file. However, when I run my .jnlp file and click on the button nothing happens. Why is that? Here's a sample of my code:
    private JButton getBtnJFileChooser() {
         if (btnJFileChooser == null) {           
    btnJFileChooser = new JButton("Open...");
    btnJFileChooser.setBounds(275, 110, 90, 20);
    btnJFileChooser.addActionListener(new OpenAction());
         return btnJFileChooser;
    class OpenAction implements ActionListener {
    public void actionPerformed(ActionEvent ae) {
    // Open a file dialog
    fc = new JFileChooser();
    int retVal = fc.showOpenDialog(SC_DOC_gui.this);
    if (retVal == JFileChooser.APPROVE_OPTION) {
    // The user selected a file, process it
    File file = fc.getSelectedFile();
    // Update user interface.
    //lblMsgArea.setText(file.getName());
    lblMsgArea.setText("Load SC_DOC Files");
    }

    I am not quite sure what's going on. When the button is clicked nothing happens. I've been doing research on this and I found a sample code that deals with jnlp and opening files. It's here: http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html#advancedexample
    Now, when I want to use this code I get an error message that the package javax.jnlp.* does not exist. So now I'm trying to figure that one out and I haven't yet. I have installed the latest Java Web Start Technology and this should work. Any advice?

  • Jnlp file problems

    I created a jnlp file which loads fine when I load it from an html page located on my computer. However, when I send this page into a webserver the file does not load up the application and instead loads as if it was a xml file in Internet Explorer.
    What's wrong??? I've been scratching at this for a while now.... :(
    Thanks,

    If your host uses the Apache webserver, you might be able to add the correct mime-type by placing a file called .htaccess file in the folder with the jnlp file(s) with the following content:AddType application/x-java-jnlp-file jnlp

  • Getting problem during deploying desktop application with JNLP File.

    Hi,
    I am developing one standalone (desktop) application in swing. I want to make one jnlp file that would be install on my computer as a client(suppose). When i am doing jav web start enabled after that making application descriptor. But when i am running a web browser where i have stored my html file. but it is giving me an error that codebase or something like this. Please tell me is there any other way to do this task. Please help me to do this. Is NetBeans ide is best way to do this. please help me.
    Thanks in advance.
    Manveer.

    >
    ...but it is giving me an error that codebase or something like this. ...>Try changing the JNLP file to 'something like that', that might work.
    In case it does not, I provide a tool called JaNeLA that will provide a lot more specific error message(s) than 'something like this'.
    Really, I cannot see you getting better help than on some of your other recent threads, with vague, unspecific error messages, and without putting the JNLP file and other relevant information.

  • Could not load file/URL (file not found) error for JNLP file

    I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
    Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
    java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
    <jnlp spec="1.0+" codebase="$$codebase">
       <information>
          <title>demo app</title>
          <description>illustrates weird bug</description>
       </information>
       <resources>
          <j2se version="1.5+"/>
          <jar href="randomFile.jar"/>
          <property name="xxx" value="xxxx"/>
          <property name="swing.metalTheme" value="steel"/>
       </resources>
    </jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
    On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
    Edited by: TomC125468 on Aug 19, 2009 1:35 PM

    Hi Luca-Sanna,
    Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
    I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

  • Indicated instalation path of the aplication in JNLP file

    Hi everybody,
    First of all, i would like to apologize about my english. Sorry about it.
    I got a problem with a deploymet of an application using Java Web Start.
    My application deploys correctly but i need a way to indicate where's the path i want to download the app.
    I've been read all documentacion about it but the argument productpath of the JNLP file doesn't works.
    I try a lot of differents ways in JNLP file, like:
    <application-desc main-class="MyPrincipalClass">
    <argument>-java</argument>
    <argument>-productpath</argument>
    <argument>DownloadedPath</argument>
    </application-desc>
    But any of them work.
    I need a way to indicate where the app must be downloaded when JNLP file is executed.
    Thanks in advanced.
    Regards from Isaac.

    ..the boss would like to have the possibility of decide
    where the application would be installed (for example: c:/MyApp/).Win XP?Start | Settings | Control Panel
    Java
    General (tab - default)
    'Temporary Internet Files' Settings.
    'Location:'  ChangeThis is how the end user (or their system administrator)
    can choose the installation location for Java Web-Start
    applications.
    Explain that to boss, and the end user, and I think
    they will be far less interested in the application
    itself offering an independent installation path.
    (after all - If I want my JWS apps. to be stored
    on the 'shared data' drive, I do not want to have
    to configure it for every single Web Start app. -
    just the plug-in - once)
    I've seen that this could be possible using
    productpath property in JNLP but this doesn't work.Huh? I do not know what you are refering to.
    Can you provide a net reference for 'productpath'?
    If chossing installation path it's not possible, ...It is (ultimately - though I want you to talk your
    boss out of such nonsense), as mentioned by
    Orclev using an 'installer' element - but that will be
    at the loss of a lot of other functionality (also as
    mentioned).
    i'd like to know how can obtain (during the
    downloaded process) the path where the
    application is being installed. Still not convinced the app. needs it, but on
    that matter, is your application running in
    a trusted environment? It is far easier to
    determine app. classpath if that is the case
    (in fact I am not sure it can be done in an
    untrusted app. - and that might be a security
    problem).

  • About multiple JARs in jnlp file

    If the application has number of jar files, then how to accomodate those in <resources> element of jnlp file?
    I have tried by putting those jars in a single folder and giving the complete path of *.jar files but its not working.
    Can anyone please suggest some solution?

    If the application has number of jar files, then how
    to accomodate those in <resources> element of jnlp
    file?The other poster gave a broad outline, for more details,
    see section 4.3 "Specifying Code Resources" of the
    JNLP Specification*.
    * The JNLP Spec. is donwloadable, but is not
    available for on-line browsing.
    http://java.sun.com/products/javawebstart/download-spec.html
    I have tried by putting those jars in a single folder** Where?
    and giving the complete path ...It is best to specify a path relative to, and 'below'
    the codebase.
    ...of *.jar files but its not working. That is not very specific. What is 'not working'?
    Perhaps the code is just lazy - in need of a bit
    of a rest and a holiday?
    Most other problems show errors in the Java
    Console. The Java Console can be configured
    to automatically open when launching a JWS
    app., and that is a good thing when an app. is
    not launching correctly.
    See the options in the Java Control Panel for
    auto-popping the console.
    Can anyone please suggest some solution?1) Configure the Java Console to open
    automatically, and copy/paste any exceptions
    seen.
    2) Check the JNLP file for well formedness***,
    before posting it here.
    3) ** Describe the paths to your JNLP file, and each
    of the paths to the resources.
    *** The well-formedness of a JNLP file (which is
    XML) can be checked in a little tool I put here..
    http://www.physci.org/xml/xmltools.html#xmlwfc

  • JNLP File Generated By A Servlet

    Based on configuration issues with our system build, I have created a servlet that generates the JNLP file for an app we have created. Once the file is written and contains all the dynamically generated info, it is never written by the servlet again.
    I noticed in creating the servlet, initially, that I actually HAD to write the JNLP file. Returning the JNLP file and setting the mime type in the HTTP response was not enough. When Web Start is invoked by the browser, it goes back to the stored JNLP file on the server.
    Can anyone explain why this is necessary?? Its seems redundant. If I can create the JNLP dynamically and pass it back to the browser, why must Web Start retrieve the JNLP file AGAIN from the web server after it launches??
    John Turner
    Software Engineer
    Context Media, Inc
    [email protected]

    There is a limit to what you can do with dynamically generated JNLP files. The combination of codebase and href must exactly specify the JNLP resource that you are retrieving. If you're using a servlet with parameters in a query string to generate the file, it should look like this:
    <jnlp spec="1.0+" codebase="http://app.datadevelopment.com/app" href="MyServlet?param1=value1&param2=value2">
    As long as the MIME type returned by the servlet is "application/x-java-jnlp-file", JWS will start just fine. Unfortunately, JWS will then bomb badly because it tries to use the href attribute as part of the file name for saving the file, and Windows at least doesn't like question marks in a file name.
    A workaround is to replace the query string with path values:
    <jnlp spec="1.0+" codebase="http://app.datadevelopment.com/app" href="MyServlet/param1=value1/param2=value2">
    I'm not 100% sure that this will work with the '=' sign as my application needed only one parameter so I dispensed with the paramN=valueN and replaced the directory with valueN only. The point is, though, that each and every time the application is launched JWS will go to the web server to get the latest copy of the JNLP and the only way I have found to dynamically generate the content is to append the necessary parameters as path names after the script (JSP in my case, servlet in your case).
    If you have multiple parameters and the '=' sign is a problem, strip out the parameter name and require that the parameters be specified in the same order each time. Use one directory delimiter per parameter.
    You can use request.getPathInfo() to retrieve the path after your servlet.

  • Jnlpdownloadservlet and dynamic jnlp file

    Problem: we want the version handling (+ jardiff) of JnlpDownLoadServlet, but we also need to construct the jnlp file dynamically (for example: a .jsp file). It seems to me there are two solutions, neither of them good: a) hack the JnlpDownloadServlet (or roll our own), intercepting the jnlp-file-reading code to forward to the jsp page that generates the jnlp xml data and use the generated response as the file contents.
    b) generate each jnlp file dynamically and then store it in a temporary location for the JnlpDownloadServlet to pick up. This entails aging the temporary jnlp files and deleting them so the server doesn't get clogged with dead jnlp files.
    Is there a third possibility? Or something in the pipe for the near future?
    (Note: Web Start Services is not a solution for this task since WSS doesn't support jar versioning, and since the $$properties mechanism does not appear to be ideal for passing a lot of dynamic jnlp information.)
    Thanks in advance for any advice.

    My jsp page actually generates the list of jars for the application. It also passes some info specific to the user session by means of the jnlp file. Since we are doing games, the list of applications keeps growing. By generating the resource elements dynamically for a game, we can reduce maintenance (as opposed to having a large number of jnlp files with mostly duplicate code) -- especially when a version is updated.
    Till we can move to 1.5, I plan to use the temporary file creation method.
    Thanks, --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for