Results 1 to 2 of 2
  1. #1
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default Problems with downloading Files from Applet

    Hello! After some initial searching on how to do this, I'm a bit stuck on how to get a file from a web applet to a user. My project at the moment takes an XML file, allows users to edit certain areas of it based on rules in another file, and then saves a new, edited version of the original file to the local directory.

    Shortly, this applet will be hosted on a webserver, and the goal is to give users access to this newly-created file that is currently being stored locally. File management isn't an area I'm particularly experienced in, and I'd love to get some input on how to go about this.

    The two things that I'm specifically not sure about are:
    What specific functions/constructs should I look towards for getting my file to the user's local computer.
    Whether I will need to create the file first and store it locally, then allow download access, or if there is some way to just write it out to the user after they have decided to download.


  2. #2
    Marcus is offline Member
    Join Date
    Jun 2007
    Rep Power


    I believe that since applets are client side you can't initiate a download from a web server unless you do two things

    • Use a security certificate for the applet so that you can access the users computers
    • Push the file onto the users computer.


Similar Threads

  1. applet.policy and i/0 problems
    By willemjav in forum NetBeans
    Replies: 0
    Last Post: 03-08-2008, 10:32 PM
  2. Reading/Writing files through Applet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-15-2007, 08:20 PM
  3. problems when I try to run an applet
    By boy22 in forum Java Applets
    Replies: 2
    Last Post: 08-11-2007, 03:47 PM
  4. Problems with compile applet
    By coco in forum Java Applets
    Replies: 1
    Last Post: 08-07-2007, 07:43 AM
  5. problems with applet
    By paty in forum Java Applets
    Replies: 1
    Last Post: 08-05-2007, 04:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts