Upload file from desktop to Java applet application

274 Views Asked by At

How I can upload a file from desktop to Java applet application?

  1. Create upload button.
  2. Browse thought the desktop and choose the file.
  3. Then create a link that enables the user to click on and open the chosen file.
1

There are 1 best solutions below

2
guillaume girod-vitouchkina On
  1. use swing for example, just a button
  2. use JFileChooser
  3. It is not clear: do you want a link where ? (if it is on the web, you have to transmit it, or it can be on the applet: why not a button ?), and does it be called another time ?

General question: what is the purpose of this file ?